StorageSetting Class

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

Implements

public final class StorageSetting
implements JsonSerializable<StorageSetting>

Storage setting.

Constructor Summary

Constructor Description
StorageSetting()

Creates an instance of StorageSetting class.

Method Summary

Modifier and Type Method and Description
StorageSettingStoreTypes datastoreType()

Get the datastoreType property: Gets or sets the type of the datastore.

static StorageSetting fromJson(JsonReader jsonReader)

Reads an instance of StorageSetting from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
StorageSettingTypes type()

Get the type property: Gets or sets the type.

StorageSetting withDatastoreType(StorageSettingStoreTypes datastoreType)

Set the datastoreType property: Gets or sets the type of the datastore.

StorageSetting withType(StorageSettingTypes type)

Set the type property: Gets or sets the type.

Methods inherited from java.lang.Object

Constructor Details

StorageSetting

public StorageSetting()

Creates an instance of StorageSetting class.

Method Details

datastoreType

public StorageSettingStoreTypes datastoreType()

Get the datastoreType property: Gets or sets the type of the datastore.

Returns:

the datastoreType value.

fromJson

public static StorageSetting fromJson(JsonReader jsonReader)

Reads an instance of StorageSetting from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public StorageSettingTypes type()

Get the type property: Gets or sets the type.

Returns:

the type value.

withDatastoreType

public StorageSetting withDatastoreType(StorageSettingStoreTypes datastoreType)

Set the datastoreType property: Gets or sets the type of the datastore.

Parameters:

datastoreType - the datastoreType value to set.

Returns:

the StorageSetting object itself.

withType

public StorageSetting withType(StorageSettingTypes type)

Set the type property: Gets or sets the type.

Parameters:

type - the type value to set.

Returns:

the StorageSetting object itself.

Applies to