- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstancePairInfo>
Pairs of Managed Instances in the failover group.
-
Constructor Summary
Constructors
Creates an instance of ManagedInstancePairInfo class.
-
Method Summary
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of ManagedInstancePairInfo from the JsonReader.
Get the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
Get the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Set the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
Set the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedInstancePairInfo
public ManagedInstancePairInfo()
Creates an instance of ManagedInstancePairInfo class.
-
Method Details
-
primaryManagedInstanceId
public String primaryManagedInstanceId()
Get the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
- Returns:
- the primaryManagedInstanceId value.
-
withPrimaryManagedInstanceId
Set the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.
- Parameters:
primaryManagedInstanceId - the primaryManagedInstanceId value to set.
- Returns:
- the ManagedInstancePairInfo object itself.
-
partnerManagedInstanceId
public String partnerManagedInstanceId()
Get the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
- Returns:
- the partnerManagedInstanceId value.
-
withPartnerManagedInstanceId
Set the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.
- Parameters:
partnerManagedInstanceId - the partnerManagedInstanceId value to set.
- Returns:
- the ManagedInstancePairInfo object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
-
fromJson
Reads an instance of ManagedInstancePairInfo from the JsonReader.
- Parameters:
jsonReader - The JsonReader being read.
- Returns:
- An instance of ManagedInstancePairInfo if the JsonReader was pointing to an instance of it, or null if it
was pointing to JSON null.
- Throws:
IOException - If an error occurs while reading the ManagedInstancePairInfo.