Class PartnerRegionInfo
java.lang.Object
com.azure.resourcemanager.sql.models.PartnerRegionInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PartnerRegionInfo>
public final class PartnerRegionInfo
extends Object
implements com.azure.json.JsonSerializable<PartnerRegionInfo>
Partner region information for the failover group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PartnerRegionInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PartnerRegionInfo from the JsonReader.location()Get the location property: Geo location of the partner managed instances.Get the replicationRole property: Replication role of the partner managed instances.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: Geo location of the partner managed instances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PartnerRegionInfo
public PartnerRegionInfo()Creates an instance of PartnerRegionInfo class.
-
-
Method Details
-
location
Get the location property: Geo location of the partner managed instances.- Returns:
- the location value.
-
withLocation
Set the location property: Geo location of the partner managed instances.- Parameters:
location- the location value to set.- Returns:
- the PartnerRegionInfo object itself.
-
replicationRole
Get the replicationRole property: Replication role of the partner managed instances.- Returns:
- the replicationRole value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PartnerRegionInfo>- Throws:
IOException
-
fromJson
Reads an instance of PartnerRegionInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PartnerRegionInfo 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 PartnerRegionInfo.
-