Class GalleryImageReference
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.GalleryImageReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryImageReference>
public final class GalleryImageReference
extends Object
implements com.azure.json.JsonSerializable<GalleryImageReference>
The reference information for an Azure Marketplace image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GalleryImageReference
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryImageReference from the JsonReader.offer()
Get the offer property: The offer of the gallery image.osType()
Get the osType property: The OS type of the gallery image.Get the publisher property: The publisher of the gallery image.sku()
Get the sku property: The SKU of the gallery image.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.version()
Get the version property: The version of the gallery image.Set the offer property: The offer of the gallery image.withOsType
(String osType) Set the osType property: The OS type of the gallery image.withPublisher
(String publisher) Set the publisher property: The publisher of the gallery image.Set the sku property: The SKU of the gallery image.withVersion
(String version) Set the version property: The version of the gallery image.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GalleryImageReference
public GalleryImageReference()Creates an instance of GalleryImageReference class.
-
-
Method Details
-
offer
Get the offer property: The offer of the gallery image.- Returns:
- the offer value.
-
withOffer
Set the offer property: The offer of the gallery image.- Parameters:
offer
- the offer value to set.- Returns:
- the GalleryImageReference object itself.
-
publisher
Get the publisher property: The publisher of the gallery image.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The publisher of the gallery image.- Parameters:
publisher
- the publisher value to set.- Returns:
- the GalleryImageReference object itself.
-
sku
Get the sku property: The SKU of the gallery image.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU of the gallery image.- Parameters:
sku
- the sku value to set.- Returns:
- the GalleryImageReference object itself.
-
osType
Get the osType property: The OS type of the gallery image.- Returns:
- the osType value.
-
withOsType
Set the osType property: The OS type of the gallery image.- Parameters:
osType
- the osType value to set.- Returns:
- the GalleryImageReference object itself.
-
version
Get the version property: The version of the gallery image.- Returns:
- the version value.
-
withVersion
Set the version property: The version of the gallery image.- Parameters:
version
- the version value to set.- Returns:
- the GalleryImageReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<GalleryImageReference>
- Throws:
IOException
-
fromJson
public static GalleryImageReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryImageReference from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GalleryImageReference 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 GalleryImageReference.
-