Class TaggingCriteria
java.lang.Object
com.azure.resourcemanager.dataprotection.models.TaggingCriteria
TaggingCriteria
Tagging criteria.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncriteria()
Get the criteria property: Criteria which decides whether the tag can be applied to a triggered backup.boolean
Get the isDefault property: Specifies if tag is default.long
Get the taggingPriority property: Retention Tag priority.tagInfo()
Get the tagInfo property: RetentionTagvoid
validate()
Validates the instance.withCriteria
(List<BackupCriteria> criteria) Set the criteria property: Criteria which decides whether the tag can be applied to a triggered backup.withIsDefault
(boolean isDefault) Set the isDefault property: Specifies if tag is default.withTaggingPriority
(long taggingPriority) Set the taggingPriority property: Retention Tag priority.withTagInfo
(RetentionTag tagInfo) Set the tagInfo property: RetentionTag
-
Constructor Details
-
TaggingCriteria
public TaggingCriteria()Creates an instance of TaggingCriteria class.
-
-
Method Details
-
criteria
Get the criteria property: Criteria which decides whether the tag can be applied to a triggered backup.- Returns:
- the criteria value.
-
withCriteria
Set the criteria property: Criteria which decides whether the tag can be applied to a triggered backup.- Parameters:
criteria
- the criteria value to set.- Returns:
- the TaggingCriteria object itself.
-
isDefault
public boolean isDefault()Get the isDefault property: Specifies if tag is default.- Returns:
- the isDefault value.
-
withIsDefault
Set the isDefault property: Specifies if tag is default.- Parameters:
isDefault
- the isDefault value to set.- Returns:
- the TaggingCriteria object itself.
-
taggingPriority
public long taggingPriority()Get the taggingPriority property: Retention Tag priority.- Returns:
- the taggingPriority value.
-
withTaggingPriority
Set the taggingPriority property: Retention Tag priority.- Parameters:
taggingPriority
- the taggingPriority value to set.- Returns:
- the TaggingCriteria object itself.
-
tagInfo
Get the tagInfo property: RetentionTagRetention tag information.
- Returns:
- the tagInfo value.
-
withTagInfo
Set the tagInfo property: RetentionTagRetention tag information.
- Parameters:
tagInfo
- the tagInfo value to set.- Returns:
- the TaggingCriteria object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-