Class ImmutableStorageWithVersioning
java.lang.Object
com.azure.resourcemanager.storage.models.ImmutableStorageWithVersioning
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImmutableStorageWithVersioning>
public final class ImmutableStorageWithVersioning
extends Object
implements com.azure.json.JsonSerializable<ImmutableStorageWithVersioning>
Object level immutability properties of the container.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImmutableStorageWithVersioning class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImmutableStorageWithVersioning from the JsonReader.Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.Get the timestamp property: Returns the date and time the object level immutability was enabled.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.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
-
ImmutableStorageWithVersioning
public ImmutableStorageWithVersioning()Creates an instance of ImmutableStorageWithVersioning class.
-
-
Method Details
-
enabled
Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.- Parameters:
enabled- the enabled value to set.- Returns:
- the ImmutableStorageWithVersioning object itself.
-
timestamp
Get the timestamp property: Returns the date and time the object level immutability was enabled.- Returns:
- the timestamp value.
-
migrationState
Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.- Returns:
- the migrationState 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<ImmutableStorageWithVersioning>- Throws:
IOException
-
fromJson
public static ImmutableStorageWithVersioning fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ImmutableStorageWithVersioning from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ImmutableStorageWithVersioning 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 ImmutableStorageWithVersioning.
-