Partilhar via


PartnerRegionInfo Class

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

Implements

public final class PartnerRegionInfo
implements JsonSerializable<PartnerRegionInfo>

Partner region information for the failover group.

Constructor Summary

Constructor Description
PartnerRegionInfo()

Creates an instance of PartnerRegionInfo class.

Method Summary

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

Reads an instance of PartnerRegionInfo from the JsonReader.

String location()

Get the location property: Geo location of the partner managed instances.

InstanceFailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Replication role of the partner managed instances.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PartnerRegionInfo withLocation(String location)

Set the location property: Geo location of the partner managed instances.

Methods inherited from java.lang.Object

Constructor Details

PartnerRegionInfo

public PartnerRegionInfo()

Creates an instance of PartnerRegionInfo class.

Method Details

fromJson

public static PartnerRegionInfo fromJson(JsonReader jsonReader)

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.

location

public String location()

Get the location property: Geo location of the partner managed instances.

Returns:

the location value.

replicationRole

public InstanceFailoverGroupReplicationRole replicationRole()

Get the replicationRole property: Replication role of the partner managed instances.

Returns:

the replicationRole value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public PartnerRegionInfo withLocation(String location)

Set the location property: Geo location of the partner managed instances.

Parameters:

location - the location value to set.

Returns:

the PartnerRegionInfo object itself.

Applies to