ImmutableStorageWithVersioning Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ImmutableStorageWithVersioning
- com.
Implements
public final class ImmutableStorageWithVersioning
implements JsonSerializable<ImmutableStorageWithVersioning>
Object level immutability properties of the container.
Constructor Summary
Constructor | Description |
---|---|
ImmutableStorageWithVersioning() |
Creates an instance of Immutable |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level. |
static
Immutable |
fromJson(JsonReader jsonReader)
Reads an instance of Immutable |
Migration |
migrationState()
Get the migration |
Offset |
timestamp()
Get the timestamp property: Returns the date and time the object level immutability was enabled. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Immutable |
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 java.lang.Object
Constructor Details
ImmutableStorageWithVersioning
public ImmutableStorageWithVersioning()
Creates an instance of ImmutableStorageWithVersioning class.
Method Details
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:
fromJson
public static ImmutableStorageWithVersioning fromJson(JsonReader jsonReader)
Reads an instance of ImmutableStorageWithVersioning from the JsonReader.
Parameters:
Returns:
Throws:
migrationState
public MigrationState migrationState()
Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Returns the date and time the object level immutability was enabled.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns: