Class DevBoxDefinitionUpdate

java.lang.Object
com.azure.resourcemanager.devcenter.models.TrackedResourceUpdate
com.azure.resourcemanager.devcenter.models.DevBoxDefinitionUpdate

public final class DevBoxDefinitionUpdate extends TrackedResourceUpdate
Partial update of a Dev Box definition resource.
  • Constructor Details

    • DevBoxDefinitionUpdate

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

    • withTags

      public DevBoxDefinitionUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class TrackedResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the TrackedResourceUpdate object itself.
    • withLocation

      public DevBoxDefinitionUpdate withLocation(String location)
      Set the location property: The geo-location where the resource lives.
      Overrides:
      withLocation in class TrackedResourceUpdate
      Parameters:
      location - the location value to set.
      Returns:
      the TrackedResourceUpdate object itself.
    • imageReference

      public ImageReference imageReference()
      Get the imageReference property: Image reference information.
      Returns:
      the imageReference value.
    • withImageReference

      public DevBoxDefinitionUpdate withImageReference(ImageReference imageReference)
      Set the imageReference property: Image reference information.
      Parameters:
      imageReference - the imageReference value to set.
      Returns:
      the DevBoxDefinitionUpdate object itself.
    • sku

      public Sku sku()
      Get the sku property: The SKU for Dev Boxes created using this definition.
      Returns:
      the sku value.
    • withSku

      public DevBoxDefinitionUpdate withSku(Sku sku)
      Set the sku property: The SKU for Dev Boxes created using this definition.
      Parameters:
      sku - the sku value to set.
      Returns:
      the DevBoxDefinitionUpdate object itself.
    • osStorageType

      public String osStorageType()
      Get the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.
      Returns:
      the osStorageType value.
    • withOsStorageType

      public DevBoxDefinitionUpdate withOsStorageType(String osStorageType)
      Set the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.
      Parameters:
      osStorageType - the osStorageType value to set.
      Returns:
      the DevBoxDefinitionUpdate object itself.
    • hibernateSupport

      public HibernateSupport hibernateSupport()
      Get the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.
      Returns:
      the hibernateSupport value.
    • withHibernateSupport

      public DevBoxDefinitionUpdate withHibernateSupport(HibernateSupport hibernateSupport)
      Set the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.
      Parameters:
      hibernateSupport - the hibernateSupport value to set.
      Returns:
      the DevBoxDefinitionUpdate object itself.
    • validate

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