Class RetentionTag
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.RetentionTag
-
public final class RetentionTag extends Object
RetentionTag Retention tag.
-
-
Constructor Summary
Constructors Constructor Description RetentionTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
etag()
Get the etag property: Retention Tag version.String
id()
Get the id property: Retention Tag version.String
tagName()
Get the tagName property: Retention Tag Name to relate it to retention rule.void
validate()
Validates the instance.RetentionTag
withTagName(String tagName)
Set the tagName property: Retention Tag Name to relate it to retention rule.
-
-
-
Method Detail
-
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.
-
-