java.lang.Object
com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata

public final class ResourceMetadata extends Object
Single resource Id's metadata.
  • Constructor Details

    • ResourceMetadata

      public ResourceMetadata()
      Creates an instance of ResourceMetadata class.
  • Method Details

    • resourceId

      public String 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

      public ResourceMetadata withResourceId(String resourceId)
      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

      public String resourceType()
      Get the resourceType property: Resource type.
      Returns:
      the resourceType value.
    • withResourceType

      public ResourceMetadata withResourceType(String resourceType)
      Set the resourceType property: Resource type.
      Parameters:
      resourceType - the resourceType value to set.
      Returns:
      the ResourceMetadata object itself.
    • resourceKind

      public String resourceKind()
      Get the resourceKind property: Resource kind.
      Returns:
      the resourceKind value.
    • withResourceKind

      public ResourceMetadata withResourceKind(String resourceKind)
      Set the resourceKind property: Resource kind.
      Parameters:
      resourceKind - the resourceKind value to set.
      Returns:
      the ResourceMetadata object itself.
    • resourceName

      public String resourceName()
      Get the resourceName property: Resource name.
      Returns:
      the resourceName value.
    • withResourceName

      public ResourceMetadata withResourceName(String resourceName)
      Set the resourceName property: Resource name.
      Parameters:
      resourceName - the resourceName value to set.
      Returns:
      the ResourceMetadata object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: Resource's tag type.
      Returns:
      the tags value.
    • withTags

      public ResourceMetadata withTags(Map<String,String> tags)
      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.