Partager via


PairedRegion Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.PairedRegion

Implements

public final class PairedRegion
implements JsonSerializable<PairedRegion>

Information regarding paired region.

Constructor Summary

Constructor Description
PairedRegion()

Creates an instance of PairedRegion class.

Method Summary

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

Reads an instance of PairedRegion from the JsonReader.

String id()

Get the id property: The fully qualified ID of the location.

String name()

Get the name property: The name of the paired region.

String subscriptionId()

Get the subscriptionId property: The subscription ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

PairedRegion

public PairedRegion()

Creates an instance of PairedRegion class.

Method Details

fromJson

public static PairedRegion fromJson(JsonReader jsonReader)

Reads an instance of PairedRegion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PairedRegion 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 PairedRegion.

id

public String id()

Get the id property: The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.

Returns:

the id value.

name

public String name()

Get the name property: The name of the paired region.

Returns:

the name value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription ID.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to