Teilen über


ImageReference Class

  • java.lang.Object
    • com.azure.resourcemanager.labservices.models.ImageReference

Implements

public final class ImageReference
implements JsonSerializable<ImageReference>

Image reference information. Used in the virtual machine profile.

Constructor Summary

Constructor Description
ImageReference()

Creates an instance of ImageReference class.

Method Summary

Modifier and Type Method and Description
String exactVersion()

Get the exactVersion property: The actual version of the image after use.

static ImageReference fromJson(JsonReader jsonReader)

Reads an instance of ImageReference from the JsonReader.

String id()

Get the id property: Image resource ID.

String offer()

Get the offer property: The image offer if applicable.

String publisher()

Get the publisher property: The image publisher.

String sku()

Get the sku property: The image SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The image version specified on creation.

ImageReference withId(String id)

Set the id property: Image resource ID.

ImageReference withOffer(String offer)

Set the offer property: The image offer if applicable.

ImageReference withPublisher(String publisher)

Set the publisher property: The image publisher.

ImageReference withSku(String sku)

Set the sku property: The image SKU.

ImageReference withVersion(String version)

Set the version property: The image version specified on creation.

Methods inherited from java.lang.Object

Constructor Details

ImageReference

public ImageReference()

Creates an instance of ImageReference class.

Method Details

exactVersion

public String exactVersion()

Get the exactVersion property: The actual version of the image after use.

Returns:

the exactVersion value.

fromJson

public static ImageReference fromJson(JsonReader jsonReader)

Reads an instance of ImageReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Image resource ID.

Returns:

the id value.

offer

public String offer()

Get the offer property: The image offer if applicable.

Returns:

the offer value.

publisher

public String publisher()

Get the publisher property: The image publisher.

Returns:

the publisher value.

sku

public String sku()

Get the sku property: The image SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The image version specified on creation.

Returns:

the version value.

withId

public ImageReference withId(String id)

Set the id property: Image resource ID.

Parameters:

id - the id value to set.

Returns:

the ImageReference object itself.

withOffer

public ImageReference withOffer(String offer)

Set the offer property: The image offer if applicable.

Parameters:

offer - the offer value to set.

Returns:

the ImageReference object itself.

withPublisher

public ImageReference withPublisher(String publisher)

Set the publisher property: The image publisher.

Parameters:

publisher - the publisher value to set.

Returns:

the ImageReference object itself.

withSku

public ImageReference withSku(String sku)

Set the sku property: The image SKU.

Parameters:

sku - the sku value to set.

Returns:

the ImageReference object itself.

withVersion

public ImageReference withVersion(String version)

Set the version property: The image version specified on creation.

Parameters:

version - the version value to set.

Returns:

the ImageReference object itself.

Applies to