Class LegalHoldInner
- java.lang.Object
-
- com.azure.resourcemanager.storage.fluent.models.LegalHoldInner
-
public final class LegalHoldInner extends Object
The LegalHold property of a blob container.
-
-
Constructor Summary
Constructors Constructor Description LegalHoldInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanhasLegalHold()Get the hasLegalHold property: The hasLegalHold public property is set to true by SRP if there are at least one existing tag.List<String>tags()Get the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.voidvalidate()Validates the instance.LegalHoldInnerwithTags(List<String> tags)Set the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
-
-
-
Method Detail
-
hasLegalHold
public Boolean hasLegalHold()
Get the hasLegalHold property: The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.- Returns:
- the hasLegalHold value.
-
tags
public List<String> tags()
Get the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.- Returns:
- the tags value.
-
withTags
public LegalHoldInner withTags(List<String> tags)
Set the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.- Parameters:
tags- the tags value to set.- Returns:
- the LegalHoldInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-