public final class ResourceRange extends Object
Constructor and Description |
---|
ResourceRange() |
Modifier and Type | Method and Description |
---|---|
Integer |
max()
Get the max property: The maximum number of the resource.
|
Integer |
min()
Get the min property: The minimum number of the resource.
|
void |
validate()
Validates the instance.
|
ResourceRange |
withMax(Integer max)
Set the max property: The maximum number of the resource.
|
ResourceRange |
withMin(Integer min)
Set the min property: The minimum number of the resource.
|
public Integer min()
public ResourceRange withMin(Integer min)
min
- the min value to set.public Integer max()
public ResourceRange withMax(Integer max)
max
- the max value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.