BaseBackupPolicy Class

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

Implements

public class BaseBackupPolicy
implements JsonSerializable<BaseBackupPolicy>

BackupPolicy base.

Constructor Summary

Constructor Description
BaseBackupPolicy()

Creates an instance of BaseBackupPolicy class.

Method Summary

Modifier and Type Method and Description
List<String> datasourceTypes()

Get the datasourceTypes property: Type of datasource for the backup management.

static BaseBackupPolicy fromJson(JsonReader jsonReader)

Reads an instance of BaseBackupPolicy from the JsonReader.

String objectType()

Get the objectType property: The objectType property.

JsonWriter toJson(JsonWriter jsonWriter)
BaseBackupPolicy withDatasourceTypes(List<String> datasourceTypes)

Set the datasourceTypes property: Type of datasource for the backup management.

Methods inherited from java.lang.Object

Constructor Details

BaseBackupPolicy

public BaseBackupPolicy()

Creates an instance of BaseBackupPolicy class.

Method Details

datasourceTypes

public List<String> datasourceTypes()

Get the datasourceTypes property: Type of datasource for the backup management.

Returns:

the datasourceTypes value.

fromJson

public static BaseBackupPolicy fromJson(JsonReader jsonReader)

Reads an instance of BaseBackupPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BaseBackupPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

objectType

public String objectType()

Get the objectType property: The objectType property.

Returns:

the objectType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withDatasourceTypes

public BaseBackupPolicy withDatasourceTypes(List<String> datasourceTypes)

Set the datasourceTypes property: Type of datasource for the backup management.

Parameters:

datasourceTypes - the datasourceTypes value to set.

Returns:

the BaseBackupPolicy object itself.

Applies to