Class TrackedResource

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.security.models.TrackedResource

public final class TrackedResource extends com.azure.core.management.ProxyResource
Describes an Azure tracked resource.
  • Constructor Details

    • TrackedResource

      public TrackedResource()
  • Method Details

    • location

      public String location()
      Get the location property: Location where the resource is stored.
      Returns:
      the location value.
    • withLocation

      public TrackedResource withLocation(String location)
      Set the location property: Location where the resource is stored.
      Parameters:
      location - the location value to set.
      Returns:
      the TrackedResource object itself.
    • kind

      public String kind()
      Get the kind property: Kind of the resource.
      Returns:
      the kind value.
    • withKind

      public TrackedResource withKind(String kind)
      Set the kind property: Kind of the resource.
      Parameters:
      kind - the kind value to set.
      Returns:
      the TrackedResource object itself.
    • etag

      public String etag()
      Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.
      Returns:
      the etag value.
    • withEtag

      public TrackedResource withEtag(String etag)
      Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.
      Parameters:
      etag - the etag value to set.
      Returns:
      the TrackedResource object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: A list of key value pairs that describe the resource.
      Returns:
      the tags value.
    • withTags

      public TrackedResource withTags(Map<String,String> tags)
      Set the tags property: A list of key value pairs that describe the resource.
      Parameters:
      tags - the tags value to set.
      Returns:
      the TrackedResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.