Share via


ImageReference Class

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

Implements

public final class ImageReference
implements JsonSerializable<ImageReference>

Image reference information.

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 ID, or Image version ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageReference withId(String id)

Set the id property: Image ID, or Image version ID.

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. When id references a gallery image latest version, this will indicate the actual version in 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 ID, or Image version ID. When Image ID is provided, its latest version will be used.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ImageReference withId(String id)

Set the id property: Image ID, or Image version ID. When Image ID is provided, its latest version will be used.

Parameters:

id - the id value to set.

Returns:

the ImageReference object itself.

Applies to