Class GalleryImageReference

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.GalleryImageReference

public final class GalleryImageReference extends Object
The reference information for an Azure Marketplace image.
  • Constructor Details

    • GalleryImageReference

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

    • offer

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

      public GalleryImageReference withOffer(String offer)
      Set the offer property: The offer of the gallery image.
      Parameters:
      offer - the offer value to set.
      Returns:
      the GalleryImageReference object itself.
    • publisher

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

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

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

      public GalleryImageReference withSku(String sku)
      Set the sku property: The SKU of the gallery image.
      Parameters:
      sku - the sku value to set.
      Returns:
      the GalleryImageReference object itself.
    • osType

      public String osType()
      Get the osType property: The OS type of the gallery image.
      Returns:
      the osType value.
    • withOsType

      public GalleryImageReference withOsType(String osType)
      Set the osType property: The OS type of the gallery image.
      Parameters:
      osType - the osType value to set.
      Returns:
      the GalleryImageReference object itself.
    • version

      public String version()
      Get the version property: The version of the gallery image.
      Returns:
      the version value.
    • withVersion

      public GalleryImageReference withVersion(String version)
      Set the version property: The version of the gallery image.
      Parameters:
      version - the version value to set.
      Returns:
      the GalleryImageReference object itself.
    • validate

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