DatabasePropertiesGeoReplication Class

  • java.lang.Object
    • com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication

Implements

public final class DatabasePropertiesGeoReplication
implements JsonSerializable<DatabasePropertiesGeoReplication>

Optional set of properties to configure geo replication for this database.

Constructor Summary

Constructor Description
DatabasePropertiesGeoReplication()

Creates an instance of DatabasePropertiesGeoReplication class.

Method Summary

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

Reads an instance of DatabasePropertiesGeoReplication from the JsonReader.

String groupNickname()

Get the groupNickname property: Name for the group of linked database resources.

List<LinkedDatabase> linkedDatabases()

Get the linkedDatabases property: List of database resources to link with this database.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabasePropertiesGeoReplication withGroupNickname(String groupNickname)

Set the groupNickname property: Name for the group of linked database resources.

DatabasePropertiesGeoReplication withLinkedDatabases(List<LinkedDatabase> linkedDatabases)

Set the linkedDatabases property: List of database resources to link with this database.

Methods inherited from java.lang.Object

Constructor Details

DatabasePropertiesGeoReplication

public DatabasePropertiesGeoReplication()

Creates an instance of DatabasePropertiesGeoReplication class.

Method Details

fromJson

public static DatabasePropertiesGeoReplication fromJson(JsonReader jsonReader)

Reads an instance of DatabasePropertiesGeoReplication from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

groupNickname

public String groupNickname()

Get the groupNickname property: Name for the group of linked database resources.

Returns:

the groupNickname value.

linkedDatabases

public List<LinkedDatabase> linkedDatabases()

Get the linkedDatabases property: List of database resources to link with this database.

Returns:

the linkedDatabases value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGroupNickname

public DatabasePropertiesGeoReplication withGroupNickname(String groupNickname)

Set the groupNickname property: Name for the group of linked database resources.

Parameters:

groupNickname - the groupNickname value to set.

Returns:

the DatabasePropertiesGeoReplication object itself.

withLinkedDatabases

public DatabasePropertiesGeoReplication withLinkedDatabases(List<LinkedDatabase> linkedDatabases)

Set the linkedDatabases property: List of database resources to link with this database.

Parameters:

linkedDatabases - the linkedDatabases value to set.

Returns:

the DatabasePropertiesGeoReplication object itself.

Applies to