LegalHoldInner Class
- java.
lang. Object - com.
azure. resourcemanager. storage. fluent. models. LegalHoldInner
- com.
Implements
public final class LegalHoldInner
implements JsonSerializable<LegalHoldInner>
The LegalHold property of a blob container.
Constructor Summary
Constructor | Description |
---|---|
LegalHoldInner() |
Creates an instance of Legal |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowProtectedAppendWritesAll()
Get the allow |
static
Legal |
fromJson(JsonReader jsonReader)
Reads an instance of Legal |
Boolean |
hasLegalHold()
Get the has |
List<String> |
tags()
Get the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Legal |
withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll)
Set the allow |
Legal |
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. |
Methods inherited from java.lang.Object
Constructor Details
LegalHoldInner
public LegalHoldInner()
Creates an instance of LegalHoldInner class.
Method Details
allowProtectedAppendWritesAll
public Boolean allowProtectedAppendWritesAll()
Get the allowProtectedAppendWritesAll property: When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
Returns:
fromJson
public static LegalHoldInner fromJson(JsonReader jsonReader)
Reads an instance of LegalHoldInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
tags
public List
Get the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowProtectedAppendWritesAll
public LegalHoldInner withAllowProtectedAppendWritesAll(Boolean allowProtectedAppendWritesAll)
Set the allowProtectedAppendWritesAll property: When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
Parameters:
Returns:
withTags
public LegalHoldInner withTags(List
Set the tags property: Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
Parameters:
Returns: