InstanceFailoverGroupInner Class

public final class InstanceFailoverGroupInner
extends ProxyResource

An instance failover group.

Constructor Summary

Constructor Description
InstanceFailoverGroupInner()

Creates an instance of InstanceFailoverGroupInner class.

Method Summary

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

Reads an instance of InstanceFailoverGroupInner from the JsonReader.

String id()

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

List<ManagedInstancePairInfo> managedInstancePairs()

Get the managedInstancePairs property: List of managed instance pairs in the failover group.

String name()

Get the name property: The name of the resource.

List<PartnerRegionInfo> partnerRegions()

Get the partnerRegions property: Partner region information for the failover group.

InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint()

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

InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint()

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

InstanceFailoverGroupReplicationRole 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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

InstanceFailoverGroupInner withManagedInstancePairs(List<ManagedInstancePairInfo> managedInstancePairs)

Set the managedInstancePairs property: List of managed instance pairs in the failover group.

InstanceFailoverGroupInner withPartnerRegions(List<PartnerRegionInfo> partnerRegions)

Set the partnerRegions property: Partner region information for the failover group.

InstanceFailoverGroupInner withReadOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

InstanceFailoverGroupInner withReadWriteEndpoint(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

InstanceFailoverGroupInner

public InstanceFailoverGroupInner()

Creates an instance of InstanceFailoverGroupInner class.

Method Details

fromJson

public static InstanceFailoverGroupInner fromJson(JsonReader jsonReader)

Reads an instance of InstanceFailoverGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InstanceFailoverGroupInner 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:

InstanceFailoverGroupInner.id()

Returns:

the id value.

managedInstancePairs

public List managedInstancePairs()

Get the managedInstancePairs property: List of managed instance pairs in the failover group.

Returns:

the managedInstancePairs value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InstanceFailoverGroupInner.name()

Returns:

the name value.

partnerRegions

public List partnerRegions()

Get the partnerRegions property: Partner region information for the failover group.

Returns:

the partnerRegions value.

readOnlyEndpoint

public InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint()

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

Returns:

the readOnlyEndpoint value.

readWriteEndpoint

public InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint()

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

Returns:

the readWriteEndpoint value.

replicationRole

public InstanceFailoverGroupReplicationRole 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InstanceFailoverGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InstanceFailoverGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withManagedInstancePairs

public InstanceFailoverGroupInner withManagedInstancePairs(List managedInstancePairs)

Set the managedInstancePairs property: List of managed instance pairs in the failover group.

Parameters:

managedInstancePairs - the managedInstancePairs value to set.

Returns:

the InstanceFailoverGroupInner object itself.

withPartnerRegions

public InstanceFailoverGroupInner withPartnerRegions(List partnerRegions)

Set the partnerRegions property: Partner region information for the failover group.

Parameters:

partnerRegions - the partnerRegions value to set.

Returns:

the InstanceFailoverGroupInner object itself.

withReadOnlyEndpoint

public InstanceFailoverGroupInner withReadOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint)

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

Parameters:

readOnlyEndpoint - the readOnlyEndpoint value to set.

Returns:

the InstanceFailoverGroupInner object itself.

withReadWriteEndpoint

public InstanceFailoverGroupInner withReadWriteEndpoint(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint)

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

Parameters:

readWriteEndpoint - the readWriteEndpoint value to set.

Returns:

the InstanceFailoverGroupInner object itself.

Applies to