Class 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 Detail

      • ImageTemplatePlatformImageSource

        public ImageTemplatePlatformImageSource()
    • 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.