ZoneMapping Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ZoneMapping
- com.
Implements
public final class ZoneMapping
implements JsonSerializable<ZoneMapping>
The ZoneMapping model.
Constructor Summary
Constructor | Description |
---|---|
ZoneMapping() |
Creates an instance of Zone |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Zone |
fromJson(JsonReader jsonReader)
Reads an instance of Zone |
String |
location()
Get the location property: The location of the zone mapping. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Zone |
withLocation(String location)
Set the location property: The location of the zone mapping. |
Zone |
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:
Returns:
Throws:
location
public String location()
Get the location property: The location of the zone mapping.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLocation
public ZoneMapping withLocation(String location)
Set the location property: The location of the zone mapping.
Parameters:
Returns:
withZones
public ZoneMapping withZones(List
Set the zones property: The zones property.
Parameters:
Returns:
zones
public List
Get the zones property: The zones property.
Returns:
Applies to
Azure SDK for Java