Class ResourceMetadata
java.lang.Object
com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata
Single resource Id's metadata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the resourceId property: Resource Id - e.g.Get the resourceKind property: Resource kind.Get the resourceName property: Resource name.Get the resourceType property: Resource type.tags()
Get the tags property: Resource's tag type.void
validate()
Validates the instance.withResourceId
(String resourceId) Set the resourceId property: Resource Id - e.g.withResourceKind
(String resourceKind) Set the resourceKind property: Resource kind.withResourceName
(String resourceName) Set the resourceName property: Resource name.withResourceType
(String resourceType) Set the resourceType property: Resource type.Set the tags property: Resource's tag type.
-
Constructor Details
-
ResourceMetadata
public ResourceMetadata()Creates an instance of ResourceMetadata class.
-
-
Method Details
-
resourceId
Get the resourceId property: Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute" + "/virtualMachines/vm1".- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute" + "/virtualMachines/vm1".- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the ResourceMetadata object itself.
-
resourceType
Get the resourceType property: Resource type.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource type.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the ResourceMetadata object itself.
-
resourceKind
Get the resourceKind property: Resource kind.- Returns:
- the resourceKind value.
-
withResourceKind
Set the resourceKind property: Resource kind.- Parameters:
resourceKind
- the resourceKind value to set.- Returns:
- the ResourceMetadata object itself.
-
resourceName
Get the resourceName property: Resource name.- Returns:
- the resourceName value.
-
withResourceName
Set the resourceName property: Resource name.- Parameters:
resourceName
- the resourceName value to set.- Returns:
- the ResourceMetadata object itself.
-
tags
Get the tags property: Resource's tag type.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource's tag type.- Parameters:
tags
- the tags value to set.- Returns:
- the ResourceMetadata object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-