InstanceFailoverGroupProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. InstanceFailoverGroupProperties
- com.
Implements
public final class InstanceFailoverGroupProperties
implements JsonSerializable<InstanceFailoverGroupProperties>
Properties of a instance failover group.
Constructor Summary
| Constructor | Description |
|---|---|
| InstanceFailoverGroupProperties() |
Creates an instance of Instance |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Instance |
fromJson(JsonReader jsonReader)
Reads an instance of Instance |
|
List<Managed |
managedInstancePairs()
Get the managed |
|
List<Partner |
partnerRegions()
Get the partner |
|
Instance |
readOnlyEndpoint()
Get the read |
|
Instance |
readWriteEndpoint()
Get the read |
|
Instance |
replicationRole()
Get the replication |
| String |
replicationState()
Get the replication |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Instance |
withManagedInstancePairs(List<ManagedInstancePairInfo> managedInstancePairs)
Set the managed |
|
Instance |
withPartnerRegions(List<PartnerRegionInfo> partnerRegions)
Set the partner |
|
Instance |
withReadOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint)
Set the read |
|
Instance |
withReadWriteEndpoint(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint)
Set the read |
Methods inherited from java.lang.Object
Constructor Details
InstanceFailoverGroupProperties
public InstanceFailoverGroupProperties()
Creates an instance of InstanceFailoverGroupProperties class.
Method Details
fromJson
public static InstanceFailoverGroupProperties fromJson(JsonReader jsonReader)
Reads an instance of InstanceFailoverGroupProperties from the JsonReader.
Parameters:
Returns:
Throws:
managedInstancePairs
public List<ManagedInstancePairInfo> managedInstancePairs()
Get the managedInstancePairs property: List of managed instance pairs in the failover group.
Returns:
partnerRegions
public List<PartnerRegionInfo> partnerRegions()
Get the partnerRegions property: Partner region information for the failover group.
Returns:
readOnlyEndpoint
public InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint()
Get the readOnlyEndpoint property: Read-only endpoint of the failover group instance.
Returns:
readWriteEndpoint
public InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint()
Get the readWriteEndpoint property: Read-write endpoint of the failover group instance.
Returns:
replicationRole
public InstanceFailoverGroupReplicationRole replicationRole()
Get the replicationRole property: Local replication role of the failover group instance.
Returns:
replicationState
public String replicationState()
Get the replicationState property: Replication state of the failover group instance.
Returns:
toJson
validate
public void validate()
Validates the instance.
withManagedInstancePairs
public InstanceFailoverGroupProperties withManagedInstancePairs(List<ManagedInstancePairInfo> managedInstancePairs)
Set the managedInstancePairs property: List of managed instance pairs in the failover group.
Parameters:
Returns:
withPartnerRegions
public InstanceFailoverGroupProperties withPartnerRegions(List<PartnerRegionInfo> partnerRegions)
Set the partnerRegions property: Partner region information for the failover group.
Parameters:
Returns:
withReadOnlyEndpoint
public InstanceFailoverGroupProperties withReadOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint)
Set the readOnlyEndpoint property: Read-only endpoint of the failover group instance.
Parameters:
Returns:
withReadWriteEndpoint
public InstanceFailoverGroupProperties withReadWriteEndpoint(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint)
Set the readWriteEndpoint property: Read-write endpoint of the failover group instance.
Parameters:
Returns: