你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExtendedLocation Class

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

Implements

public final class ExtendedLocation
implements JsonSerializable<ExtendedLocation>

The complex type of the extended location.

Constructor Summary

Constructor Description
ExtendedLocation()

Creates an instance of ExtendedLocation class.

Method Summary

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

Reads an instance of ExtendedLocation from the JsonReader.

String name()

Get the name property: The name of the extended location.

JsonWriter toJson(JsonWriter jsonWriter)
ExtendedLocationTypes type()

Get the type property: The type of the extended location.

void validate()

Validates the instance.

ExtendedLocation withName(String name)

Set the name property: The name of the extended location.

ExtendedLocation withType(ExtendedLocationTypes type)

Set the type property: The type of the extended location.

Methods inherited from java.lang.Object

Constructor Details

ExtendedLocation

public ExtendedLocation()

Creates an instance of ExtendedLocation class.

Method Details

fromJson

public static ExtendedLocation fromJson(JsonReader jsonReader)

Reads an instance of ExtendedLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the extended location.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ExtendedLocationTypes type()

Get the type property: The type of the extended location.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public ExtendedLocation withName(String name)

Set the name property: The name of the extended location.

Parameters:

name - the name value to set.

Returns:

the ExtendedLocation object itself.

withType

public ExtendedLocation withType(ExtendedLocationTypes type)

Set the type property: The type of the extended location.

Parameters:

type - the type value to set.

Returns:

the ExtendedLocation object itself.

Applies to