Class OsImageProfile

java.lang.Object
com.azure.resourcemanager.workloads.models.OsImageProfile

public final class OsImageProfile extends Object
OS image profile.
  • Constructor Details

    • OsImageProfile

      public OsImageProfile()
  • Method Details

    • publisher

      public OSImagePublisher publisher()
      Get the publisher property: OS image publisher.
      Returns:
      the publisher value.
    • withPublisher

      public OsImageProfile withPublisher(OSImagePublisher publisher)
      Set the publisher property: OS image publisher.
      Parameters:
      publisher - the publisher value to set.
      Returns:
      the OsImageProfile object itself.
    • offer

      public OSImageOffer offer()
      Get the offer property: OS image offer.
      Returns:
      the offer value.
    • withOffer

      public OsImageProfile withOffer(OSImageOffer offer)
      Set the offer property: OS image offer.
      Parameters:
      offer - the offer value to set.
      Returns:
      the OsImageProfile object itself.
    • sku

      public OSImageSku sku()
      Get the sku property: OS image sku.
      Returns:
      the sku value.
    • withSku

      public OsImageProfile withSku(OSImageSku sku)
      Set the sku property: OS image sku.
      Parameters:
      sku - the sku value to set.
      Returns:
      the OsImageProfile object itself.
    • version

      public OSImageVersion version()
      Get the version property: OS image version.
      Returns:
      the version value.
    • withVersion

      public OsImageProfile withVersion(OSImageVersion version)
      Set the version property: OS image version.
      Parameters:
      version - the version value to set.
      Returns:
      the OsImageProfile object itself.
    • validate

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