Class ImageReference
java.lang.Object
com.azure.resourcemanager.devcenter.models.ImageReference
Image reference information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the exactVersion property: The actual version of the image after use.id()
Get the id property: Image ID, or Image version ID.offer()
Get the offer property: The image offer.Get the publisher property: The image publisher.sku()
Get the sku property: The image sku.void
validate()
Validates the instance.Set the id property: Image ID, or Image version ID.Set the offer property: The image offer.withPublisher
(String publisher) Set the publisher property: The image publisher.Set the sku property: The image sku.
-
Constructor Details
-
ImageReference
public ImageReference()Creates an instance of ImageReference class.
-
-
Method Details
-
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.
-
withId
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.
-
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.
-
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.
-
offer
Get the offer property: The image offer.- Returns:
- the offer value.
-
withOffer
Set the offer property: The image offer.- Parameters:
offer
- the offer 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-