مشاركة عبر


FailoverGroupUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.FailoverGroupUpdate

Implements

public final class FailoverGroupUpdate
implements JsonSerializable<FailoverGroupUpdate>

A failover group update request.

Constructor Summary

Constructor Description
FailoverGroupUpdate()

Creates an instance of FailoverGroupUpdate class.

Method Summary

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

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

static FailoverGroupUpdate fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupUpdate 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.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FailoverGroupUpdate withDatabases(List<String> databases)

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

FailoverGroupUpdate withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

FailoverGroupUpdate withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

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

FailoverGroupUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

FailoverGroupUpdate

public FailoverGroupUpdate()

Creates an instance of FailoverGroupUpdate 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 FailoverGroupUpdate fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDatabases

public FailoverGroupUpdate withDatabases(List<String> databases)

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

Parameters:

databases - the databases value to set.

Returns:

the FailoverGroupUpdate object itself.

withReadOnlyEndpoint

public FailoverGroupUpdate withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

Parameters:

readOnlyEndpoint - the readOnlyEndpoint value to set.

Returns:

the FailoverGroupUpdate object itself.

withReadWriteEndpoint

public FailoverGroupUpdate withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

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

Parameters:

readWriteEndpoint - the readWriteEndpoint value to set.

Returns:

the FailoverGroupUpdate object itself.

withTags

public FailoverGroupUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the FailoverGroupUpdate object itself.

Applies to