LegalHoldProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. LegalHoldProperties
- com.
Implements
public final class LegalHoldProperties
implements JsonSerializable<LegalHoldProperties>
The LegalHold property of a blob container.
Constructor Summary
Constructor | Description |
---|---|
LegalHoldProperties() |
Creates an instance of Legal |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Legal |
fromJson(JsonReader jsonReader)
Reads an instance of Legal |
Boolean |
hasLegalHold()
Get the has |
Protected |
protectedAppendWritesHistory()
Get the protected |
List<Tag |
tags()
Get the tags property: The list of Legal |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Legal |
withProtectedAppendWritesHistory(ProtectedAppendWritesHistory protectedAppendWritesHistory)
Set the protected |
Legal |
withTags(List<TagProperty> tags)
Set the tags property: The list of Legal |
Methods inherited from java.lang.Object
Constructor Details
LegalHoldProperties
public LegalHoldProperties()
Creates an instance of LegalHoldProperties class.
Method Details
fromJson
public static LegalHoldProperties fromJson(JsonReader jsonReader)
Reads an instance of LegalHoldProperties 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:
protectedAppendWritesHistory
public ProtectedAppendWritesHistory protectedAppendWritesHistory()
Get the protectedAppendWritesHistory property: Protected append blob writes history.
Returns:
tags
public List
Get the tags property: The list of LegalHold tags of a blob container.
Returns:
toJson
validate
public void validate()
Validates the instance.
withProtectedAppendWritesHistory
public LegalHoldProperties withProtectedAppendWritesHistory(ProtectedAppendWritesHistory protectedAppendWritesHistory)
Set the protectedAppendWritesHistory property: Protected append blob writes history.
Parameters:
Returns:
withTags
public LegalHoldProperties withTags(List
Set the tags property: The list of LegalHold tags of a blob container.
Parameters:
Returns:
Applies to
Azure SDK for Java