Del via


FailoverGroupUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.FailoverGroupUpdateProperties

Implements

public final class FailoverGroupUpdateProperties
implements JsonSerializable<FailoverGroupUpdateProperties>

Properties of a failover group update.

Constructor Summary

Constructor Description
FailoverGroupUpdateProperties()

Creates an instance of FailoverGroupUpdateProperties class.

Method Summary

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

Get the databases property: List of databases in the failover group.

static FailoverGroupUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupUpdateProperties from the JsonReader.

FailoverGroupReadOnlyEndpoint readOnlyEndpoint()

Get the readOnlyEndpoint property: Read-only endpoint of the failover group instance.

FailoverGroupReadWriteEndpoint readWriteEndpoint()

Get the readWriteEndpoint property: Read-write endpoint of the failover group instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FailoverGroupUpdateProperties withDatabases(List<String> databases)

Set the databases property: List of databases in the failover group.

FailoverGroupUpdateProperties withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

Set the readOnlyEndpoint property: Read-only endpoint of the failover group instance.

FailoverGroupUpdateProperties withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

Set the readWriteEndpoint property: Read-write endpoint of the failover group instance.

Methods inherited from java.lang.Object

Constructor Details

FailoverGroupUpdateProperties

public FailoverGroupUpdateProperties()

Creates an instance of FailoverGroupUpdateProperties class.

Method Details

databases

public List<String> databases()

Get the databases property: List of databases in the failover group.

Returns:

the databases value.

fromJson

public static FailoverGroupUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

readOnlyEndpoint

public FailoverGroupReadOnlyEndpoint readOnlyEndpoint()

Get the readOnlyEndpoint property: Read-only endpoint of the failover group instance.

Returns:

the readOnlyEndpoint value.

readWriteEndpoint

public FailoverGroupReadWriteEndpoint readWriteEndpoint()

Get the readWriteEndpoint property: Read-write endpoint of the failover group instance.

Returns:

the readWriteEndpoint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDatabases

public FailoverGroupUpdateProperties withDatabases(List<String> databases)

Set the databases property: List of databases in the failover group.

Parameters:

databases - the databases value to set.

Returns:

the FailoverGroupUpdateProperties object itself.

withReadOnlyEndpoint

public FailoverGroupUpdateProperties withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

Set the readOnlyEndpoint property: Read-only endpoint of the failover group instance.

Parameters:

readOnlyEndpoint - the readOnlyEndpoint value to set.

Returns:

the FailoverGroupUpdateProperties object itself.

withReadWriteEndpoint

public FailoverGroupUpdateProperties withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

Set the readWriteEndpoint property: Read-write endpoint of the failover group instance.

Parameters:

readWriteEndpoint - the readWriteEndpoint value to set.

Returns:

the FailoverGroupUpdateProperties object itself.

Applies to