Class ImmutableStorageWithVersioning
java.lang.Object
com.azure.resourcemanager.storage.models.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.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.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.
-
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.
-