Partilhar via


PartnerInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.PartnerInfo

Implements

public final class PartnerInfo
implements JsonSerializable<PartnerInfo>

Partner server information for the failover group.

Constructor Summary

Constructor Description
PartnerInfo()

Creates an instance of PartnerInfo class.

Method Summary

Modifier and Type Method and Description
static PartnerInfo fromJson(JsonReader jsonReader)

Reads an instance of PartnerInfo from the JsonReader.

String id()

Get the id property: Resource identifier of the partner server.

String location()

Get the location property: Geo location of the partner server.

FailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Replication role of the partner server.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PartnerInfo 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:

jsonReader - The JsonReader being read.

Returns:

An instance of PartnerInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource identifier of the partner server.

Returns:

the id value.

location

public String location()

Get the location property: Geo location of the partner server.

Returns:

the location value.

replicationRole

public FailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Replication role of the partner server.

Returns:

the replicationRole value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public PartnerInfo withId(String id)

Set the id property: Resource identifier of the partner server.

Parameters:

id - the id value to set.

Returns:

the PartnerInfo object itself.

Applies to