Class AzureResource
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.monitor.models.AzureResource
-
- Direct Known Subclasses:
ActionGroupResourceInner
public class AzureResource extends com.azure.core.management.ResourceAn azure resource object.
-
-
Constructor Summary
Constructors Constructor Description AzureResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringidentity()Get the identity property: Azure resource identity.Stringkind()Get the kind property: Azure resource kind.voidvalidate()Validates the instance.AzureResourcewithLocation(String location)AzureResourcewithTags(Map<String,String> tags)
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: Azure resource kind.- Returns:
- the kind value.
-
identity
public String identity()
Get the identity property: Azure resource identity.- Returns:
- the identity value.
-
withLocation
public AzureResource withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public AzureResource withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-