ZoneMapping Class

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

Implements

public final class ZoneMapping
implements JsonSerializable<ZoneMapping>

The ZoneMapping model.

Constructor Summary

Constructor Description
ZoneMapping()

Creates an instance of ZoneMapping class.

Method Summary

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

Reads an instance of ZoneMapping from the JsonReader.

String location()

Get the location property: The location of the zone mapping.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ZoneMapping withLocation(String location)

Set the location property: The location of the zone mapping.

ZoneMapping withZones(List<String> zones)

Set the zones property: The zones property.

List<String> zones()

Get the zones property: The zones property.

Methods inherited from java.lang.Object

Constructor Details

ZoneMapping

public ZoneMapping()

Creates an instance of ZoneMapping class.

Method Details

fromJson

public static ZoneMapping fromJson(JsonReader jsonReader)

Reads an instance of ZoneMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: The location of the zone mapping.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public ZoneMapping withLocation(String location)

Set the location property: The location of the zone mapping.

Parameters:

location - the location value to set.

Returns:

the ZoneMapping object itself.

withZones

public ZoneMapping withZones(List zones)

Set the zones property: The zones property.

Parameters:

zones - the zones value to set.

Returns:

the ZoneMapping object itself.

zones

public List zones()

Get the zones property: The zones property.

Returns:

the zones value.

Applies to