Class PatchTrackedResource

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.recoveryservices.models.PatchTrackedResource
Direct Known Subclasses:
PatchVault

public class PatchTrackedResource extends com.azure.core.management.ProxyResource
Tracked resource with location.
  • Constructor Details

    • PatchTrackedResource

      public PatchTrackedResource()
  • Method Details

    • location

      public String location()
      Get the location property: Resource location.
      Returns:
      the location value.
    • withLocation

      public PatchTrackedResource withLocation(String location)
      Set the location property: Resource location.
      Parameters:
      location - the location value to set.
      Returns:
      the PatchTrackedResource object itself.
    • tags

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

      public PatchTrackedResource withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the PatchTrackedResource object itself.
    • etag

      public String etag()
      Get the etag property: Optional ETag.
      Returns:
      the etag value.
    • withEtag

      public PatchTrackedResource withEtag(String etag)
      Set the etag property: Optional ETag.
      Parameters:
      etag - the etag value to set.
      Returns:
      the PatchTrackedResource object itself.
    • validate

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