Class RetentionTag
java.lang.Object
com.azure.resourcemanager.dataprotection.models.RetentionTag
RetentionTag
Retention tag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionetag()
Get the etag property: Retention Tag version.id()
Get the id property: Retention Tag version.tagName()
Get the tagName property: Retention Tag Name to relate it to retention rule.void
validate()
Validates the instance.withTagName
(String tagName) Set the tagName property: Retention Tag Name to relate it to retention rule.
-
Constructor Details
-
RetentionTag
public RetentionTag()Creates an instance of RetentionTag class.
-
-
Method Details
-
etag
Get the etag property: Retention Tag version.- Returns:
- the etag value.
-
id
Get the id property: Retention Tag version.- Returns:
- the id value.
-
tagName
Get the tagName property: Retention Tag Name to relate it to retention rule.- Returns:
- the tagName value.
-
withTagName
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.
-