FailoverGroupInner Class

public final class FailoverGroupInner
extends ProxyResource

A failover group.

Constructor Summary

Constructor Description
FailoverGroupInner()

Creates an instance of FailoverGroupInner class.

Method Summary

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

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

static FailoverGroupInner fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

Get the location property: Resource location.

String name()

Get the name property: The name of the resource.

List<PartnerInfo> partnerServers()

Get the partnerServers property: List of partner server information for the failover group.

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.

FailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Local replication role of the failover group instance.

String replicationState()

Get the replicationState property: Replication state of the failover group instance.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

FailoverGroupInner withDatabases(List<String> databases)

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

FailoverGroupInner withPartnerServers(List<PartnerInfo> partnerServers)

Set the partnerServers property: List of partner server information for the failover group.

FailoverGroupInner withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

FailoverGroupInner withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

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

FailoverGroupInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

FailoverGroupInner

public FailoverGroupInner()

Creates an instance of FailoverGroupInner class.

Method Details

databases

public List databases()

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

Returns:

the databases value.

fromJson

public static FailoverGroupInner fromJson(JsonReader jsonReader)

Reads an instance of FailoverGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

FailoverGroupInner.id()

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

FailoverGroupInner.name()

Returns:

the name value.

partnerServers

public List partnerServers()

Get the partnerServers property: List of partner server information for the failover group.

Returns:

the partnerServers value.

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.

replicationRole

public FailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Local replication role of the failover group instance.

Returns:

the replicationRole value.

replicationState

public String replicationState()

Get the replicationState property: Replication state of the failover group instance.

Returns:

the replicationState value.

tags

public Map tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FailoverGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

FailoverGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDatabases

public FailoverGroupInner withDatabases(List databases)

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

Parameters:

databases - the databases value to set.

Returns:

the FailoverGroupInner object itself.

withPartnerServers

public FailoverGroupInner withPartnerServers(List partnerServers)

Set the partnerServers property: List of partner server information for the failover group.

Parameters:

partnerServers - the partnerServers value to set.

Returns:

the FailoverGroupInner object itself.

withReadOnlyEndpoint

public FailoverGroupInner withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

Parameters:

readOnlyEndpoint - the readOnlyEndpoint value to set.

Returns:

the FailoverGroupInner object itself.

withReadWriteEndpoint

public FailoverGroupInner withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)

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

Parameters:

readWriteEndpoint - the readWriteEndpoint value to set.

Returns:

the FailoverGroupInner object itself.

withTags

public FailoverGroupInner withTags(Map tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the FailoverGroupInner object itself.

Applies to