Class ImageReference
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.ImageReference
The image reference properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the exactVersion property: Specifies in decimal numbers, the exact version of image used to create the virtual machine.offer()
Get the offer property: Specifies the offer of the image used to create the virtual machine.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: Specifies the version of the image used to create the virtual machine.withExactVersion
(String exactVersion) Set the exactVersion property: Specifies in decimal numbers, the exact version of image used to create the virtual machine.Set the offer property: Specifies the offer of the image used to create the virtual machine.withPublisher
(String publisher) Set the publisher property: The image publisher.Set the sku property: The image SKU.withVersion
(String version) Set the version property: Specifies the version of the image used to create the virtual machine.
-
Constructor Details
-
ImageReference
public ImageReference()Creates an instance of ImageReference class.
-
-
Method Details
-
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: Specifies the offer of the image used to create the virtual machine.- Returns:
- the offer value.
-
withOffer
Set the offer property: Specifies the offer of the image used to create the virtual machine.- 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.
-
version
Get the version property: Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.- Returns:
- the version value.
-
withVersion
Set the version property: Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.- Parameters:
version
- the version value to set.- Returns:
- the ImageReference object itself.
-
exactVersion
Get the exactVersion property: Specifies in decimal numbers, the exact version of image used to create the virtual machine.- Returns:
- the exactVersion value.
-
withExactVersion
Set the exactVersion property: Specifies in decimal numbers, the exact version of image used to create the virtual machine.- Parameters:
exactVersion
- the exactVersion value to set.- Returns:
- the ImageReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-