ManagedResource Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. alertsmanagement. models. ManagedResource
- com.
- com.
public class ManagedResource
extends ProxyResource
An azure managed resource object.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedResource() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
location()
Get the location property: Resource location. |
| String |
name()
Get the name property: The name of the resource. |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Managed |
withLocation(String location)
Set the location property: Resource location. |
|
Managed |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ManagedResource
public ManagedResource()
Creates an instance of ManagedResource class.
Method Details
fromJson
public static ManagedResource fromJson(JsonReader jsonReader)
Reads an instance of ManagedResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedResource.id()Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedResource.name()Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedResource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedResource.type()Returns:
validate
public void validate()
Validates the instance.
withLocation
public ManagedResource withLocation(String location)
Set the location property: Resource location.
Parameters:
Returns:
withTags
public ManagedResource withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Parameters:
Returns: