다음을 통해 공유


ImmutableStorageWithVersioning Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ImmutableStorageWithVersioning

Implements

public final class ImmutableStorageWithVersioning
implements JsonSerializable<ImmutableStorageWithVersioning>

Object level immutability properties of the container.

Constructor Summary

Constructor Description
ImmutableStorageWithVersioning()

Creates an instance of ImmutableStorageWithVersioning class.

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 ImmutableStorageWithVersioning fromJson(JsonReader jsonReader)

Reads an instance of ImmutableStorageWithVersioning from the JsonReader.

MigrationState migrationState()

Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.

OffsetDateTime timestamp()

Get the timestamp property: Returns the date and time the object level immutability was enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

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:

the enabled value.

fromJson

public static ImmutableStorageWithVersioning fromJson(JsonReader jsonReader)

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.

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.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: Returns the date and time the object level immutability was enabled.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the ImmutableStorageWithVersioning object itself.

Applies to