ImageReference Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. ImageReference
- com.
Implements
public final class ImageReference
implements JsonSerializable<ImageReference>
Image reference information.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageReference() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
exactVersion()
Get the exact |
|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
| String |
id()
Get the id property: Image ID, or Image version ID. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Image |
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:
fromJson
public static ImageReference fromJson(JsonReader jsonReader)
Reads an instance of ImageReference from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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:
Returns: