PolicyParameters Class

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

Implements

public final class PolicyParameters
implements JsonSerializable<PolicyParameters>

Parameters in Policy.

Constructor Summary

Constructor Description
PolicyParameters()

Creates an instance of PolicyParameters class.

Method Summary

Modifier and Type Method and Description
List<BackupDatasourceParameters> backupDatasourceParametersList()

Get the backupDatasourceParametersList property: Gets or sets the Backup Data Source Parameters.

List<DataStoreParameters> dataStoreParametersList()

Get the dataStoreParametersList property: Gets or sets the DataStore Parameters.

static PolicyParameters fromJson(JsonReader jsonReader)

Reads an instance of PolicyParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
PolicyParameters withBackupDatasourceParametersList(List<BackupDatasourceParameters> backupDatasourceParametersList)

Set the backupDatasourceParametersList property: Gets or sets the Backup Data Source Parameters.

PolicyParameters withDataStoreParametersList(List<DataStoreParameters> dataStoreParametersList)

Set the dataStoreParametersList property: Gets or sets the DataStore Parameters.

Methods inherited from java.lang.Object

Constructor Details

PolicyParameters

public PolicyParameters()

Creates an instance of PolicyParameters class.

Method Details

backupDatasourceParametersList

public List<BackupDatasourceParameters> backupDatasourceParametersList()

Get the backupDatasourceParametersList property: Gets or sets the Backup Data Source Parameters.

Returns:

the backupDatasourceParametersList value.

dataStoreParametersList

public List<DataStoreParameters> dataStoreParametersList()

Get the dataStoreParametersList property: Gets or sets the DataStore Parameters.

Returns:

the dataStoreParametersList value.

fromJson

public static PolicyParameters fromJson(JsonReader jsonReader)

Reads an instance of PolicyParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withBackupDatasourceParametersList

public PolicyParameters withBackupDatasourceParametersList(List<BackupDatasourceParameters> backupDatasourceParametersList)

Set the backupDatasourceParametersList property: Gets or sets the Backup Data Source Parameters.

Parameters:

backupDatasourceParametersList - the backupDatasourceParametersList value to set.

Returns:

the PolicyParameters object itself.

withDataStoreParametersList

public PolicyParameters withDataStoreParametersList(List<DataStoreParameters> dataStoreParametersList)

Set the dataStoreParametersList property: Gets or sets the DataStore Parameters.

Parameters:

dataStoreParametersList - the dataStoreParametersList value to set.

Returns:

the PolicyParameters object itself.

Applies to