Class ImageTemplatePlatformImageSource
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateSource
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplatePlatformImageSource
-
public final class ImageTemplatePlatformImageSource extends ImageTemplateSource
Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
-
-
Constructor Summary
Constructors Constructor Description ImageTemplatePlatformImageSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
exactVersion()
Get the exactVersion property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).String
offer()
Get the offer property: Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).PlatformImagePurchasePlan
planInfo()
Get the planInfo property: Optional configuration of purchase plan for platform image.String
publisher()
Get the publisher property: Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).String
sku()
Get the sku property: Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).void
validate()
Validates the instance.String
version()
Get the version property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).ImageTemplatePlatformImageSource
withOffer(String offer)
Set the offer property: Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).ImageTemplatePlatformImageSource
withPlanInfo(PlatformImagePurchasePlan planInfo)
Set the planInfo property: Optional configuration of purchase plan for platform image.ImageTemplatePlatformImageSource
withPublisher(String publisher)
Set the publisher property: Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).ImageTemplatePlatformImageSource
withSku(String sku)
Set the sku property: Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).ImageTemplatePlatformImageSource
withVersion(String version)
Set the version property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
-
-
-
Method Detail
-
publisher
public String publisher()
Get the publisher property: Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Returns:
- the publisher value.
-
withPublisher
public ImageTemplatePlatformImageSource withPublisher(String publisher)
Set the publisher property: Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Parameters:
publisher
- the publisher value to set.- Returns:
- the ImageTemplatePlatformImageSource object itself.
-
offer
public String offer()
Get the offer property: Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Returns:
- the offer value.
-
withOffer
public ImageTemplatePlatformImageSource withOffer(String offer)
Set the offer property: Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Parameters:
offer
- the offer value to set.- Returns:
- the ImageTemplatePlatformImageSource object itself.
-
sku
public String sku()
Get the sku property: Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Returns:
- the sku value.
-
withSku
public ImageTemplatePlatformImageSource withSku(String sku)
Set the sku property: Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).- Parameters:
sku
- the sku value to set.- Returns:
- the ImageTemplatePlatformImageSource object itself.
-
version
public String version()
Get the version property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.- Returns:
- the version value.
-
withVersion
public ImageTemplatePlatformImageSource withVersion(String version)
Set the version property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.- Parameters:
version
- the version value to set.- Returns:
- the ImageTemplatePlatformImageSource object itself.
-
exactVersion
public String exactVersion()
Get the exactVersion property: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.- Returns:
- the exactVersion value.
-
planInfo
public PlatformImagePurchasePlan planInfo()
Get the planInfo property: Optional configuration of purchase plan for platform image.- Returns:
- the planInfo value.
-
withPlanInfo
public ImageTemplatePlatformImageSource withPlanInfo(PlatformImagePurchasePlan planInfo)
Set the planInfo property: Optional configuration of purchase plan for platform image.- Parameters:
planInfo
- the planInfo value to set.- Returns:
- the ImageTemplatePlatformImageSource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classImageTemplateSource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-