Partager via


ExtendedLocation Class

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

Implements

public final class ExtendedLocation
implements JsonSerializable<ExtendedLocation>

Resource 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 extended location name.

JsonWriter toJson(JsonWriter jsonWriter)
ExtendedLocationType type()

Get the type property: The extended location type.

void validate()

Validates the instance.

ExtendedLocation withName(String name)

Set the name property: The extended location name.

ExtendedLocation withType(ExtendedLocationType type)

Set the type property: The extended location type.

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 extended location name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ExtendedLocationType type()

Get the type property: The extended location type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public ExtendedLocation withName(String name)

Set the name property: The extended location name.

Parameters:

name - the name value to set.

Returns:

the ExtendedLocation object itself.

withType

public ExtendedLocation withType(ExtendedLocationType type)

Set the type property: The extended location type.

Parameters:

type - the type value to set.

Returns:

the ExtendedLocation object itself.

Applies to