java.lang.Object
com.azure.resourcemanager.dataprotection.models.RetentionTag

public final class RetentionTag extends Object
RetentionTag

Retention tag.

  • Constructor Details

    • RetentionTag

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

    • etag

      public String etag()
      Get the etag property: Retention Tag version.
      Returns:
      the etag value.
    • id

      public String id()
      Get the id property: Retention Tag version.
      Returns:
      the id value.
    • tagName

      public String tagName()
      Get the tagName property: Retention Tag Name to relate it to retention rule.
      Returns:
      the tagName value.
    • withTagName

      public RetentionTag withTagName(String tagName)
      Set the tagName property: Retention Tag Name to relate it to retention rule.
      Parameters:
      tagName - the tagName value to set.
      Returns:
      the RetentionTag object itself.
    • validate

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