Class ImageReference


  • public final class ImageReference
    extends Object
    Image reference information. Used in the virtual machine profile.
    • Constructor Detail

      • ImageReference

        public ImageReference()
    • Method Detail

      • id

        public String id()
        Get the id property: Image resource ID.
        Returns:
        the id value.
      • withId

        public ImageReference withId​(String id)
        Set the id property: Image resource ID.
        Parameters:
        id - the id value to set.
        Returns:
        the ImageReference object itself.
      • offer

        public String offer()
        Get the offer property: The image offer if applicable.
        Returns:
        the offer value.
      • withOffer

        public ImageReference withOffer​(String offer)
        Set the offer property: The image offer if applicable.
        Parameters:
        offer - the offer value to set.
        Returns:
        the ImageReference object itself.
      • publisher

        public String publisher()
        Get the publisher property: The image publisher.
        Returns:
        the publisher value.
      • withPublisher

        public ImageReference withPublisher​(String publisher)
        Set the publisher property: The image publisher.
        Parameters:
        publisher - the publisher value to set.
        Returns:
        the ImageReference object itself.
      • sku

        public String sku()
        Get the sku property: The image SKU.
        Returns:
        the sku value.
      • withSku

        public ImageReference withSku​(String sku)
        Set the sku property: The image SKU.
        Parameters:
        sku - the sku value to set.
        Returns:
        the ImageReference object itself.
      • version

        public String version()
        Get the version property: The image version specified on creation.
        Returns:
        the version value.
      • withVersion

        public ImageReference withVersion​(String version)
        Set the version property: The image version specified on creation.
        Parameters:
        version - the version value to set.
        Returns:
        the ImageReference object itself.
      • exactVersion

        public String 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.