Partager via


CrossRegionRestoreSettings Class

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

Implements

public final class CrossRegionRestoreSettings
implements JsonSerializable<CrossRegionRestoreSettings>

The CrossRegionRestoreSettings model.

Constructor Summary

Constructor Description
CrossRegionRestoreSettings()

Creates an instance of CrossRegionRestoreSettings class.

Method Summary

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

Reads an instance of CrossRegionRestoreSettings from the JsonReader.

CrossRegionRestoreState state()

Get the state property: CrossRegionRestore state.

JsonWriter toJson(JsonWriter jsonWriter)
CrossRegionRestoreSettings withState(CrossRegionRestoreState state)

Set the state property: CrossRegionRestore state.

Methods inherited from java.lang.Object

Constructor Details

CrossRegionRestoreSettings

public CrossRegionRestoreSettings()

Creates an instance of CrossRegionRestoreSettings class.

Method Details

fromJson

public static CrossRegionRestoreSettings fromJson(JsonReader jsonReader)

Reads an instance of CrossRegionRestoreSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

state

public CrossRegionRestoreState state()

Get the state property: CrossRegionRestore state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withState

public CrossRegionRestoreSettings withState(CrossRegionRestoreState state)

Set the state property: CrossRegionRestore state.

Parameters:

state - the state value to set.

Returns:

the CrossRegionRestoreSettings object itself.

Applies to