ZoneMovement Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ZoneMovement

Implements

public final class ZoneMovement
implements JsonSerializable<ZoneMovement>

Describes zone movement configuration. This allows VM to be moved across availability zones during an outage.

Constructor Summary

Constructor Description
ZoneMovement()

Creates an instance of ZoneMovement class.

Method Summary

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

Reads an instance of ZoneMovement from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Indicates if zone movement is enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ZoneMovement withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates if zone movement is enabled.

Methods inherited from java.lang.Object

Constructor Details

ZoneMovement

public ZoneMovement()

Creates an instance of ZoneMovement class.

Method Details

fromJson

public static ZoneMovement fromJson(JsonReader jsonReader)

Reads an instance of ZoneMovement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can't be moved from one zone to another.

Returns:

the isEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsEnabled

public ZoneMovement withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can't be moved from one zone to another.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the ZoneMovement object itself.

Applies to