Class ProtectedAppendWritesHistory
java.lang.Object
com.azure.resourcemanager.storage.models.ProtectedAppendWritesHistory
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProtectedAppendWritesHistory>
public final class ProtectedAppendWritesHistory
extends Object
implements com.azure.json.JsonSerializable<ProtectedAppendWritesHistory>
Protected append writes history setting for the blob container with Legal holds.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ProtectedAppendWritesHistory class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowProtectedAppendWritesAll property: When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance.static ProtectedAppendWritesHistoryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProtectedAppendWritesHistory from the JsonReader.Get the timestamp property: Returns the date and time the tag was added.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProtectedAppendWritesHistory
public ProtectedAppendWritesHistory()Creates an instance of ProtectedAppendWritesHistory class.
-
-
Method Details
-
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:
- the allowProtectedAppendWritesAll value.
-
withAllowProtectedAppendWritesAll
public ProtectedAppendWritesHistory 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:
allowProtectedAppendWritesAll- the allowProtectedAppendWritesAll value to set.- Returns:
- the ProtectedAppendWritesHistory object itself.
-
timestamp
Get the timestamp property: Returns the date and time the tag was added.- Returns:
- the timestamp value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProtectedAppendWritesHistory>- Throws:
IOException
-
fromJson
public static ProtectedAppendWritesHistory fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ProtectedAppendWritesHistory from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProtectedAppendWritesHistory if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ProtectedAppendWritesHistory.
-