Class GalleryExtendedLocation
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryExtendedLocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryExtendedLocation>
public final class GalleryExtendedLocation
extends Object
implements com.azure.json.JsonSerializable<GalleryExtendedLocation>
The name of the extended location.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryExtendedLocation class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GalleryExtendedLocationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryExtendedLocation from the JsonReader.name()Get the name property: The name property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: It is type of the extended location.voidvalidate()Validates the instance.Set the name property: The name property.Set the type property: It is type of the extended location.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GalleryExtendedLocation
public GalleryExtendedLocation()Creates an instance of GalleryExtendedLocation class.
-
-
Method Details
-
name
-
withName
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the GalleryExtendedLocation object itself.
-
type
Get the type property: It is type of the extended location.- Returns:
- the type value.
-
withType
Set the type property: It is type of the extended location.- Parameters:
type- the type value to set.- Returns:
- the GalleryExtendedLocation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryExtendedLocation>- Throws:
IOException
-
fromJson
public static GalleryExtendedLocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-