ManagedInstancePairInfo Class

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

Implements

public final class ManagedInstancePairInfo
implements JsonSerializable<ManagedInstancePairInfo>

Pairs of Managed Instances in the failover group.

Constructor Summary

Constructor Description
ManagedInstancePairInfo()

Creates an instance of ManagedInstancePairInfo class.

Method Summary

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

Reads an instance of ManagedInstancePairInfo from the JsonReader.

String partnerManagedInstanceId()

Get the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.

String primaryManagedInstanceId()

Get the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedInstancePairInfo withPartnerManagedInstanceId(String partnerManagedInstanceId)

Set the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.

ManagedInstancePairInfo withPrimaryManagedInstanceId(String primaryManagedInstanceId)

Set the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.

Methods inherited from java.lang.Object

Constructor Details

ManagedInstancePairInfo

public ManagedInstancePairInfo()

Creates an instance of ManagedInstancePairInfo class.

Method Details

fromJson

public static ManagedInstancePairInfo fromJson(JsonReader jsonReader)

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.

partnerManagedInstanceId

public String partnerManagedInstanceId()

Get the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.

Returns:

the partnerManagedInstanceId value.

primaryManagedInstanceId

public String primaryManagedInstanceId()

Get the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.

Returns:

the primaryManagedInstanceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPartnerManagedInstanceId

public ManagedInstancePairInfo withPartnerManagedInstanceId(String partnerManagedInstanceId)

Set the partnerManagedInstanceId property: Id of Partner Managed Instance in pair.

Parameters:

partnerManagedInstanceId - the partnerManagedInstanceId value to set.

Returns:

the ManagedInstancePairInfo object itself.

withPrimaryManagedInstanceId

public ManagedInstancePairInfo withPrimaryManagedInstanceId(String primaryManagedInstanceId)

Set the primaryManagedInstanceId property: Id of Primary Managed Instance in pair.

Parameters:

primaryManagedInstanceId - the primaryManagedInstanceId value to set.

Returns:

the ManagedInstancePairInfo object itself.

Applies to