Class ResourceRange

java.lang.Object
com.azure.resourcemanager.compute.models.ResourceRange

public final class ResourceRange extends Object
Describes the resource range.
  • Constructor Details

    • ResourceRange

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

    • min

      public Integer min()
      Get the min property: The minimum number of the resource.
      Returns:
      the min value.
    • withMin

      public ResourceRange withMin(Integer min)
      Set the min property: The minimum number of the resource.
      Parameters:
      min - the min value to set.
      Returns:
      the ResourceRange object itself.
    • max

      public Integer max()
      Get the max property: The maximum number of the resource.
      Returns:
      the max value.
    • withMax

      public ResourceRange withMax(Integer max)
      Set the max property: The maximum number of the resource.
      Parameters:
      max - the max value to set.
      Returns:
      the ResourceRange object itself.
    • validate

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