ManagedInstancePairInfo Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ManagedInstancePairInfo
- com.
Implements
public final class ManagedInstancePairInfo
implements JsonSerializable<ManagedInstancePairInfo>
Pairs of Managed Instances in the failover group.
Constructor Summary
Constructor | Description |
---|---|
ManagedInstancePairInfo() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
partnerManagedInstanceId()
Get the partner |
String |
primaryManagedInstanceId()
Get the primary |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withPartnerManagedInstanceId(String partnerManagedInstanceId)
Set the partner |
Managed |
withPrimaryManagedInstanceId(String primaryManagedInstanceId)
Set the primary |
Methods inherited from java.lang.Object
Constructor Details
ManagedInstancePairInfo
public ManagedInstancePairInfo()
Creates an instance of ManagedInstancePairInfo class.
Method Details
fromJson
public static ManagedInstancePairInfo fromJson(JsonReader jsonReader)
Reads an instance of ManagedInstancePairInfo from the JsonReader.
Parameters:
Returns:
Throws:
partnerManagedInstanceId
public String partnerManagedInstanceId()
Get the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
Returns:
primaryManagedInstanceId
public String primaryManagedInstanceId()
Get the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPartnerManagedInstanceId
public ManagedInstancePairInfo withPartnerManagedInstanceId(String partnerManagedInstanceId)
Set the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
Parameters:
Returns:
withPrimaryManagedInstanceId
public ManagedInstancePairInfo withPrimaryManagedInstanceId(String primaryManagedInstanceId)
Set the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
Parameters:
Returns:
Applies to
Azure SDK for Java