PartnerInfo Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. PartnerInfo
- com.
Implements
public final class PartnerInfo
implements JsonSerializable<PartnerInfo>
Partner server information for the failover group.
Constructor Summary
Constructor | Description |
---|---|
PartnerInfo() |
Creates an instance of Partner |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Partner |
fromJson(JsonReader jsonReader)
Reads an instance of Partner |
String |
id()
Get the id property: Resource identifier of the partner server. |
String |
location()
Get the location property: Geo location of the partner server. |
Failover |
replicationRole()
Get the replication |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Partner |
withId(String id)
Set the id property: Resource identifier of the partner server. |
Methods inherited from java.lang.Object
Constructor Details
PartnerInfo
public PartnerInfo()
Creates an instance of PartnerInfo class.
Method Details
fromJson
public static PartnerInfo fromJson(JsonReader jsonReader)
Reads an instance of PartnerInfo from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource identifier of the partner server.
Returns:
location
public String location()
Get the location property: Geo location of the partner server.
Returns:
replicationRole
public FailoverGroupReplicationRole replicationRole()
Get the replicationRole property: Replication role of the partner server.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public PartnerInfo withId(String id)
Set the id property: Resource identifier of the partner server.
Parameters:
Returns:
Applies to
Azure SDK for Java