GalleryImageIdentifier Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryImageIdentifier
- com.
Implements
public final class GalleryImageIdentifier
implements JsonSerializable<GalleryImageIdentifier>
This is the gallery image definition identifier.
Constructor Summary
Constructor | Description |
---|---|
GalleryImageIdentifier() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
String |
offer()
Get the offer property: The name of the gallery image definition offer. |
String |
publisher()
Get the publisher property: The name of the gallery image definition publisher. |
String |
sku()
Get the sku property: The name of the gallery image definition SKU. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withOffer(String offer)
Set the offer property: The name of the gallery image definition offer. |
Gallery |
withPublisher(String publisher)
Set the publisher property: The name of the gallery image definition publisher. |
Gallery |
withSku(String sku)
Set the sku property: The name of the gallery image definition SKU. |
Methods inherited from java.lang.Object
Constructor Details
GalleryImageIdentifier
public GalleryImageIdentifier()
Creates an instance of GalleryImageIdentifier class.
Method Details
fromJson
public static GalleryImageIdentifier fromJson(JsonReader jsonReader)
Reads an instance of GalleryImageIdentifier from the JsonReader.
Parameters:
Returns:
Throws:
offer
public String offer()
Get the offer property: The name of the gallery image definition offer.
Returns:
publisher
public String publisher()
Get the publisher property: The name of the gallery image definition publisher.
Returns:
sku
public String sku()
Get the sku property: The name of the gallery image definition SKU.
Returns:
toJson
validate
public void validate()
Validates the instance.
withOffer
public GalleryImageIdentifier withOffer(String offer)
Set the offer property: The name of the gallery image definition offer.
Parameters:
Returns:
withPublisher
public GalleryImageIdentifier withPublisher(String publisher)
Set the publisher property: The name of the gallery image definition publisher.
Parameters:
Returns:
withSku
public GalleryImageIdentifier withSku(String sku)
Set the sku property: The name of the gallery image definition SKU.
Parameters:
Returns:
Applies to
Azure SDK for Java