ExtendedLocation Class

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

Implements

public final class ExtendedLocation
implements JsonSerializable<ExtendedLocation>

ExtendedLocation represents the Azure custom location where the resource will be created.

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 resource ID of the extended location on which the resource will be created.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The extended location type, for example, CustomLocation.

void validate()

Validates the instance.

ExtendedLocation withName(String name)

Set the name property: The resource ID of the extended location on which the resource will be created.

ExtendedLocation withType(String type)

Set the type property: The extended location type, for example, CustomLocation.

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 the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The resource ID of the extended location on which the resource will be created.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The extended location type, for example, CustomLocation.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public ExtendedLocation withName(String name)

Set the name property: The resource ID of the extended location on which the resource will be created.

Parameters:

name - the name value to set.

Returns:

the ExtendedLocation object itself.

withType

public ExtendedLocation withType(String type)

Set the type property: The extended location type, for example, CustomLocation.

Parameters:

type - the type value to set.

Returns:

the ExtendedLocation object itself.

Applies to