Share via


ImmutabilitySettings Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings

Implements

public final class ImmutabilitySettings
implements JsonSerializable<ImmutabilitySettings>

Immutability Settings at vault level.

Constructor Summary

Constructor Description
ImmutabilitySettings()

Creates an instance of ImmutabilitySettings class.

Method Summary

Modifier and Type Method and Description
static ImmutabilitySettings fromJson(JsonReader jsonReader)

Reads an instance of ImmutabilitySettings from the JsonReader.

ImmutabilityState state()

Get the state property: Immutability state.

JsonWriter toJson(JsonWriter jsonWriter)
ImmutabilitySettings withState(ImmutabilityState state)

Set the state property: Immutability state.

Methods inherited from java.lang.Object

Constructor Details

ImmutabilitySettings

public ImmutabilitySettings()

Creates an instance of ImmutabilitySettings class.

Method Details

fromJson

public static ImmutabilitySettings fromJson(JsonReader jsonReader)

Reads an instance of ImmutabilitySettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImmutabilitySettings 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 ImmutabilitySettings.

state

public ImmutabilityState state()

Get the state property: Immutability state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withState

public ImmutabilitySettings withState(ImmutabilityState state)

Set the state property: Immutability state.

Parameters:

state - the state value to set.

Returns:

the ImmutabilitySettings object itself.

Applies to