ResourceRange Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResourceRange
- com.
Implements
public final class ResourceRange
implements JsonSerializable<ResourceRange>
Describes the resource range.
Constructor Summary
Constructor | Description |
---|---|
ResourceRange() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
Integer |
max()
Get the max property: The maximum number of the resource. |
Integer |
min()
Get the min property: The minimum number of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withMax(Integer max)
Set the max property: The maximum number of the resource. |
Resource |
withMin(Integer min)
Set the min property: The minimum number of the resource. |
Methods inherited from java.lang.Object
Constructor Details
ResourceRange
public ResourceRange()
Creates an instance of ResourceRange class.
Method Details
fromJson
public static ResourceRange fromJson(JsonReader jsonReader)
Reads an instance of ResourceRange from the JsonReader.
Parameters:
Returns:
Throws:
max
public Integer max()
Get the max property: The maximum number of the resource.
Returns:
min
public Integer min()
Get the min property: The minimum number of the resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMax
public ResourceRange withMax(Integer max)
Set the max property: The maximum number of the resource.
Parameters:
Returns:
withMin
public ResourceRange withMin(Integer min)
Set the min property: The minimum number of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java