Class ImageReference
java.lang.Object
com.azure.resourcemanager.labservices.models.ImageReference
Image reference information. Used in the virtual machine profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the exactVersion property: The actual version of the image after use.id()
Get the id property: Image resource ID.offer()
Get the offer property: The image offer if applicable.Get the publisher property: The image publisher.sku()
Get the sku property: The image SKU.void
validate()
Validates the instance.version()
Get the version property: The image version specified on creation.Set the id property: Image resource ID.Set the offer property: The image offer if applicable.withPublisher
(String publisher) Set the publisher property: The image publisher.Set the sku property: The image SKU.withVersion
(String version) Set the version property: The image version specified on creation.
-
Constructor Details
-
ImageReference
public ImageReference()
-
-
Method Details
-
id
Get the id property: Image resource ID.- Returns:
- the id value.
-
withId
Set the id property: Image resource ID.- Parameters:
id
- the id value to set.- Returns:
- the ImageReference object itself.
-
offer
Get the offer property: The image offer if applicable.- Returns:
- the offer value.
-
withOffer
Set the offer property: The image offer if applicable.- Parameters:
offer
- the offer value to set.- Returns:
- the ImageReference object itself.
-
publisher
Get the publisher property: The image publisher.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The image publisher.- Parameters:
publisher
- the publisher value to set.- Returns:
- the ImageReference object itself.
-
sku
Get the sku property: The image SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The image SKU.- Parameters:
sku
- the sku value to set.- Returns:
- the ImageReference object itself.
-
version
Get the version property: The image version specified on creation.- Returns:
- the version value.
-
withVersion
Set the version property: The image version specified on creation.- Parameters:
version
- the version value to set.- Returns:
- the ImageReference object itself.
-
exactVersion
Get the exactVersion property: The actual version of the image after use.- Returns:
- the exactVersion value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-