InstanceFailoverGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. InstanceFailoverGroupInner
- com.
- com.
public final class InstanceFailoverGroupInner
extends ProxyResource
An instance failover group.
Constructor Summary
Constructor | Description |
---|---|
InstanceFailoverGroupInner() |
Creates an instance of Instance |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Instance |
fromJson(JsonReader jsonReader)
Reads an instance of Instance |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
List<Managed |
managedInstancePairs()
Get the managed |
String |
name()
Get the name property: The name of the resource. |
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) |
String |
type()
Get the type property: The type of the resource. |
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 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:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
InstanceFailoverGroupInner.id()Returns:
managedInstancePairs
public List
Get the managedInstancePairs property: List of managed instance pairs in the failover group.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
InstanceFailoverGroupInner.name()Returns:
partnerRegions
public List
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
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
InstanceFailoverGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
InstanceFailoverGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withManagedInstancePairs
public InstanceFailoverGroupInner withManagedInstancePairs(List
Set the managedInstancePairs property: List of managed instance pairs in the failover group.
Parameters:
Returns:
withPartnerRegions
public InstanceFailoverGroupInner withPartnerRegions(List
Set the partnerRegions property: Partner region information for the failover group.
Parameters:
Returns:
withReadOnlyEndpoint
public InstanceFailoverGroupInner withReadOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint)
Set the readOnlyEndpoint property: Read-only endpoint of the failover group instance.
Parameters:
Returns:
withReadWriteEndpoint
public InstanceFailoverGroupInner withReadWriteEndpoint(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint)
Set the readWriteEndpoint property: Read-write endpoint of the failover group instance.
Parameters:
Returns:
Applies to
Azure SDK for Java