Share via


FeatureSettings Class

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

Implements

public final class FeatureSettings
implements JsonSerializable<FeatureSettings>

Class containing feature settings of vault.

Constructor Summary

Constructor Description
FeatureSettings()

Creates an instance of FeatureSettings class.

Method Summary

Modifier and Type Method and Description
CrossRegionRestoreSettings crossRegionRestoreSettings()

Get the crossRegionRestoreSettings property: The crossRegionRestoreSettings property.

CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings()

Get the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings.

static FeatureSettings fromJson(JsonReader jsonReader)

Reads an instance of FeatureSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
FeatureSettings withCrossRegionRestoreSettings(CrossRegionRestoreSettings crossRegionRestoreSettings)

Set the crossRegionRestoreSettings property: The crossRegionRestoreSettings property.

FeatureSettings withCrossSubscriptionRestoreSettings(CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings)

Set the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings.

Methods inherited from java.lang.Object

Constructor Details

FeatureSettings

public FeatureSettings()

Creates an instance of FeatureSettings class.

Method Details

crossRegionRestoreSettings

public CrossRegionRestoreSettings crossRegionRestoreSettings()

Get the crossRegionRestoreSettings property: The crossRegionRestoreSettings property.

Returns:

the crossRegionRestoreSettings value.

crossSubscriptionRestoreSettings

public CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings()

Get the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings.

Returns:

the crossSubscriptionRestoreSettings value.

fromJson

public static FeatureSettings fromJson(JsonReader jsonReader)

Reads an instance of FeatureSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCrossRegionRestoreSettings

public FeatureSettings withCrossRegionRestoreSettings(CrossRegionRestoreSettings crossRegionRestoreSettings)

Set the crossRegionRestoreSettings property: The crossRegionRestoreSettings property.

Parameters:

crossRegionRestoreSettings - the crossRegionRestoreSettings value to set.

Returns:

the FeatureSettings object itself.

withCrossSubscriptionRestoreSettings

public FeatureSettings withCrossSubscriptionRestoreSettings(CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings)

Set the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings.

Parameters:

crossSubscriptionRestoreSettings - the crossSubscriptionRestoreSettings value to set.

Returns:

the FeatureSettings object itself.

Applies to