Class ImageReference

java.lang.Object
com.azure.resourcemanager.devcenter.models.ImageReference

public final class ImageReference extends Object
Image reference information.
  • Constructor Details

    • ImageReference

      public ImageReference()
      Creates an instance of ImageReference class.
  • Method Details

    • id

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

      public ImageReference withId(String id)
      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

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

      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.
    • offer

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

      public ImageReference withOffer(String offer)
      Set the offer property: The image offer.
      Parameters:
      offer - the offer 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.