Partilhar via


GalleryImageIdentifier Class

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

Implements

public final class GalleryImageIdentifier
implements JsonSerializable<GalleryImageIdentifier>

This is the gallery image definition identifier.

Constructor Summary

Constructor Description
GalleryImageIdentifier()

Creates an instance of GalleryImageIdentifier class.

Method Summary

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

Reads an instance of GalleryImageIdentifier from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryImageIdentifier withOffer(String offer)

Set the offer property: The name of the gallery image definition offer.

GalleryImageIdentifier withPublisher(String publisher)

Set the publisher property: The name of the gallery image definition publisher.

GalleryImageIdentifier 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:

jsonReader - The JsonReader being read.

Returns:

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

offer

public String offer()

Get the offer property: The name of the gallery image definition offer.

Returns:

the offer value.

publisher

public String publisher()

Get the publisher property: The name of the gallery image definition publisher.

Returns:

the publisher value.

sku

public String sku()

Get the sku property: The name of the gallery image definition SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

offer - the offer value to set.

Returns:

the GalleryImageIdentifier object itself.

withPublisher

public GalleryImageIdentifier withPublisher(String publisher)

Set the publisher property: The name of the gallery image definition publisher.

Parameters:

publisher - the publisher value to set.

Returns:

the GalleryImageIdentifier object itself.

withSku

public GalleryImageIdentifier withSku(String sku)

Set the sku property: The name of the gallery image definition SKU.

Parameters:

sku - the sku value to set.

Returns:

the GalleryImageIdentifier object itself.

Applies to