Class ResourceRange
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.ResourceRange
-
public final class ResourceRange extends Object
Describes the resource range.
-
-
Constructor Summary
Constructors Constructor Description ResourceRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integermax()Get the max property: The maximum number of the resource.Integermin()Get the min property: The minimum number of the resource.voidvalidate()Validates the instance.ResourceRangewithMax(Integer max)Set the max property: The maximum number of the resource.ResourceRangewithMin(Integer min)Set the min property: The minimum number of the resource.
-
-
-
Method Detail
-
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.
-
-