ImageReference Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. models. ImageReference
- com.
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 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 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
version()
Get the version property: The image version specified on creation. |
|
Image |
withId(String id)
Set the id property: Image resource ID. |
|
Image |
withOffer(String offer)
Set the offer property: The image offer if applicable. |
|
Image |
withPublisher(String publisher)
Set the publisher property: The image publisher. |
|
Image |
withSku(String sku)
Set the sku property: The image SKU. |
|
Image |
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:
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 resource ID.
Returns:
offer
public String offer()
Get the offer property: The image offer if applicable.
Returns:
publisher
public String publisher()
Get the publisher property: The image publisher.
Returns:
sku
public String sku()
Get the sku property: The image SKU.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: The image version specified on creation.
Returns:
withId
public ImageReference withId(String id)
Set the id property: Image resource ID.
Parameters:
Returns:
withOffer
public ImageReference withOffer(String offer)
Set the offer property: The image offer if applicable.
Parameters:
Returns:
withPublisher
public ImageReference withPublisher(String publisher)
Set the publisher property: The image publisher.
Parameters:
Returns:
withSku
public ImageReference withSku(String sku)
Set the sku property: The image SKU.
Parameters:
Returns:
withVersion
public ImageReference withVersion(String version)
Set the version property: The image version specified on creation.
Parameters:
Returns: