Class ResourceRange
java.lang.Object
com.azure.resourcemanager.compute.models.ResourceRange
Describes the resource range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmax()Get the max property: The maximum number of the resource.min()Get the min property: The minimum number of the resource.voidvalidate()Validates the instance.Set the max property: The maximum number of the resource.Set the min property: The minimum number of the resource.
-
Constructor Details
-
ResourceRange
public ResourceRange()
-
-
Method Details
-
min
Get the min property: The minimum number of the resource.- Returns:
- the min value.
-
withMin
Set the min property: The minimum number of the resource.- Parameters:
min- the min value to set.- Returns:
- the ResourceRange object itself.
-
max
Get the max property: The maximum number of the resource.- Returns:
- the max value.
-
withMax
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.
-