AvailabilityProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.AvailabilityProperties

Implements

public final class AvailabilityProperties
implements JsonSerializable<AvailabilityProperties>

The properties describing private cloud availability zone distribution.

Constructor Summary

Constructor Description
AvailabilityProperties()

Creates an instance of AvailabilityProperties class.

Method Summary

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

Reads an instance of AvailabilityProperties from the JsonReader.

Integer secondaryZone()

Get the secondaryZone property: The secondary availability zone for the private cloud.

AvailabilityStrategy strategy()

Get the strategy property: The availability strategy for the private cloud.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailabilityProperties withSecondaryZone(Integer secondaryZone)

Set the secondaryZone property: The secondary availability zone for the private cloud.

AvailabilityProperties withStrategy(AvailabilityStrategy strategy)

Set the strategy property: The availability strategy for the private cloud.

AvailabilityProperties withZone(Integer zone)

Set the zone property: The primary availability zone for the private cloud.

Integer zone()

Get the zone property: The primary availability zone for the private cloud.

Methods inherited from java.lang.Object

Constructor Details

AvailabilityProperties

public AvailabilityProperties()

Creates an instance of AvailabilityProperties class.

Method Details

fromJson

public static AvailabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of AvailabilityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secondaryZone

public Integer secondaryZone()

Get the secondaryZone property: The secondary availability zone for the private cloud.

Returns:

the secondaryZone value.

strategy

public AvailabilityStrategy strategy()

Get the strategy property: The availability strategy for the private cloud.

Returns:

the strategy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecondaryZone

public AvailabilityProperties withSecondaryZone(Integer secondaryZone)

Set the secondaryZone property: The secondary availability zone for the private cloud.

Parameters:

secondaryZone - the secondaryZone value to set.

Returns:

the AvailabilityProperties object itself.

withStrategy

public AvailabilityProperties withStrategy(AvailabilityStrategy strategy)

Set the strategy property: The availability strategy for the private cloud.

Parameters:

strategy - the strategy value to set.

Returns:

the AvailabilityProperties object itself.

withZone

public AvailabilityProperties withZone(Integer zone)

Set the zone property: The primary availability zone for the private cloud.

Parameters:

zone - the zone value to set.

Returns:

the AvailabilityProperties object itself.

zone

public Integer zone()

Get the zone property: The primary availability zone for the private cloud.

Returns:

the zone value.

Applies to