共用方式為


CommunityGalleryImageIdentifier Class

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

Implements

public final class CommunityGalleryImageIdentifier
implements JsonSerializable<CommunityGalleryImageIdentifier>

This is the community gallery image definition identifier.

Constructor Summary

Constructor Description
CommunityGalleryImageIdentifier()

Creates an instance of CommunityGalleryImageIdentifier class.

Method Summary

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

Reads an instance of CommunityGalleryImageIdentifier 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.

CommunityGalleryImageIdentifier withOffer(String offer)

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

CommunityGalleryImageIdentifier withPublisher(String publisher)

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

CommunityGalleryImageIdentifier withSku(String sku)

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

Methods inherited from java.lang.Object

Constructor Details

CommunityGalleryImageIdentifier

public CommunityGalleryImageIdentifier()

Creates an instance of CommunityGalleryImageIdentifier class.

Method Details

fromJson

public static CommunityGalleryImageIdentifier fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryImageIdentifier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 CommunityGalleryImageIdentifier withOffer(String offer)

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

Parameters:

offer - the offer value to set.

Returns:

the CommunityGalleryImageIdentifier object itself.

withPublisher

public CommunityGalleryImageIdentifier withPublisher(String publisher)

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

Parameters:

publisher - the publisher value to set.

Returns:

the CommunityGalleryImageIdentifier object itself.

withSku

public CommunityGalleryImageIdentifier withSku(String sku)

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

Parameters:

sku - the sku value to set.

Returns:

the CommunityGalleryImageIdentifier object itself.

Applies to