Class ImmutableStorageWithVersioning
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ImmutableStorageWithVersioning
-
public final class ImmutableStorageWithVersioning extends Object
Object level immutability properties of the container.
-
-
Constructor Summary
Constructors Constructor Description ImmutableStorageWithVersioning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.MigrationStatemigrationState()Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.OffsetDateTimetimestamp()Get the timestamp property: Returns the date and time the object level immutability was enabled.voidvalidate()Validates the instance.ImmutableStorageWithVersioningwithEnabled(Boolean enabled)Set the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.
-
-
-
Method Detail
-
enabled
public Boolean 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
public ImmutableStorageWithVersioning 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.- Parameters:
enabled- the enabled value to set.- Returns:
- the ImmutableStorageWithVersioning object itself.
-
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Returns the date and time the object level immutability was enabled.- Returns:
- the timestamp value.
-
migrationState
public MigrationState 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.
-
-