ResourceRange Class

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

Implements

public final class ResourceRange
implements JsonSerializable<ResourceRange>

Describes the resource range.

Constructor Summary

Constructor Description
ResourceRange()

Creates an instance of ResourceRange class.

Method Summary

Modifier and Type Method and Description
static ResourceRange fromJson(JsonReader jsonReader)

Reads an instance of ResourceRange from the JsonReader.

Integer max()

Get the max property: The maximum number of the resource.

Integer min()

Get the min property: The minimum number of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceRange if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ResourceRange.

max

public Integer max()

Get the max property: The maximum number of the resource.

Returns:

the max value.

min

public Integer min()

Get the min property: The minimum number of the resource.

Returns:

the min value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to