GalleryExtendedLocation Class

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

Implements

public final class GalleryExtendedLocation
implements JsonSerializable<GalleryExtendedLocation>

The name of the extended location.

Constructor Summary

Constructor Description
GalleryExtendedLocation()

Creates an instance of GalleryExtendedLocation class.

Method Summary

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

Reads an instance of GalleryExtendedLocation from the JsonReader.

String name()

Get the name property: The name property.

JsonWriter toJson(JsonWriter jsonWriter)
GalleryExtendedLocationType type()

Get the type property: It is type of the extended location.

void validate()

Validates the instance.

GalleryExtendedLocation withName(String name)

Set the name property: The name property.

GalleryExtendedLocation withType(GalleryExtendedLocationType type)

Set the type property: It is type of the extended location.

Methods inherited from java.lang.Object

Constructor Details

GalleryExtendedLocation

public GalleryExtendedLocation()

Creates an instance of GalleryExtendedLocation class.

Method Details

fromJson

public static GalleryExtendedLocation fromJson(JsonReader jsonReader)

Reads an instance of GalleryExtendedLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name property.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public GalleryExtendedLocationType type()

Get the type property: It is type of the extended location.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public GalleryExtendedLocation withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the GalleryExtendedLocation object itself.

withType

public GalleryExtendedLocation withType(GalleryExtendedLocationType type)

Set the type property: It is type of the extended location.

Parameters:

type - the type value to set.

Returns:

the GalleryExtendedLocation object itself.

Applies to