CommonTrackedResource Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. network. models. CommonResource - com.
azure. resourcemanager. network. models. CommonTrackedResource
- com.
- com.
- com.
public class CommonTrackedResource
extends CommonResource
Tracked Resource The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'.
Constructor Summary
Constructor | Description |
---|---|
CommonTrackedResource() |
Creates an instance of Common |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Common |
fromJson(JsonReader jsonReader)
Reads an instance of Common |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
location()
Get the location property: The geo-location where the resource lives. |
String |
name()
Get the name property: The name of the resource. |
System |
systemData()
Get the system |
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. |
Common |
withLocation(String location)
Set the location property: The geo-location where the resource lives. |
Common |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from CommonResource
Methods inherited from java.lang.Object
Constructor Details
CommonTrackedResource
public CommonTrackedResource()
Creates an instance of CommonTrackedResource class.
Method Details
fromJson
public static CommonTrackedResource fromJson(JsonReader jsonReader)
Reads an instance of CommonTrackedResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
CommonTrackedResource.id()Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
CommonTrackedResource.name()Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Overrides:
CommonTrackedResource.systemData()Returns:
tags
public Map
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CommonTrackedResource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
CommonTrackedResource.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
CommonTrackedResource.validate()withLocation
public CommonTrackedResource withLocation(String location)
Set the location property: The geo-location where the resource lives.
Parameters:
Returns:
withTags
public CommonTrackedResource withTags(Map
Set the tags property: Resource tags.
Parameters:
Returns:
Applies to
Azure SDK for Java