Compartilhar via


AvailabilityZonePeers Class

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

Implements

public final class AvailabilityZonePeers
implements JsonSerializable<AvailabilityZonePeers>

List of availability zones shared by the subscriptions.

Constructor Summary

Constructor Description
AvailabilityZonePeers()

Creates an instance of AvailabilityZonePeers class.

Method Summary

Modifier and Type Method and Description
String availabilityZone()

Get the availabilityZone property: The availabilityZone.

static AvailabilityZonePeers fromJson(JsonReader jsonReader)

Reads an instance of AvailabilityZonePeers from the JsonReader.

List<Peers> peers()

Get the peers property: Details of shared availability zone.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailabilityZonePeers withPeers(List<Peers> peers)

Set the peers property: Details of shared availability zone.

Methods inherited from java.lang.Object

Constructor Details

AvailabilityZonePeers

public AvailabilityZonePeers()

Creates an instance of AvailabilityZonePeers class.

Method Details

availabilityZone

public String availabilityZone()

Get the availabilityZone property: The availabilityZone.

Returns:

the availabilityZone value.

fromJson

public static AvailabilityZonePeers fromJson(JsonReader jsonReader)

Reads an instance of AvailabilityZonePeers from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

peers

public List peers()

Get the peers property: Details of shared availability zone.

Returns:

the peers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPeers

public AvailabilityZonePeers withPeers(List peers)

Set the peers property: Details of shared availability zone.

Parameters:

peers - the peers value to set.

Returns:

the AvailabilityZonePeers object itself.

Applies to