Zdieľať cez


Capacity Class

  • java.lang.Object
    • com.azure.resourcemanager.dell.storage.models.Capacity

Implements

public final class Capacity
implements JsonSerializable<Capacity>

Capacity for a Resource.

Constructor Summary

Constructor Description
Capacity()

Creates an instance of Capacity class.

Method Summary

Modifier and Type Method and Description
String current()

Get the current property: Current Capacity of the resource.

static Capacity fromJson(JsonReader jsonReader)

Reads an instance of Capacity from the JsonReader.

String incremental()

Get the incremental property: Units to be increased.

String max()

Get the max property: Maximum Capacity.

String min()

Get the min property: Minimum Capacity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Capacity withCurrent(String current)

Set the current property: Current Capacity of the resource.

Capacity withIncremental(String incremental)

Set the incremental property: Units to be increased.

Capacity withMax(String max)

Set the max property: Maximum Capacity.

Capacity withMin(String min)

Set the min property: Minimum Capacity.

Methods inherited from java.lang.Object

Constructor Details

Capacity

public Capacity()

Creates an instance of Capacity class.

Method Details

current

public String current()

Get the current property: Current Capacity of the resource.

Returns:

the current value.

fromJson

public static Capacity fromJson(JsonReader jsonReader)

Reads an instance of Capacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Capacity 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 Capacity.

incremental

public String incremental()

Get the incremental property: Units to be increased.

Returns:

the incremental value.

max

public String max()

Get the max property: Maximum Capacity.

Returns:

the max value.

min

public String min()

Get the min property: Minimum Capacity.

Returns:

the min value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCurrent

public Capacity withCurrent(String current)

Set the current property: Current Capacity of the resource.

Parameters:

current - the current value to set.

Returns:

the Capacity object itself.

withIncremental

public Capacity withIncremental(String incremental)

Set the incremental property: Units to be increased.

Parameters:

incremental - the incremental value to set.

Returns:

the Capacity object itself.

withMax

public Capacity withMax(String max)

Set the max property: Maximum Capacity.

Parameters:

max - the max value to set.

Returns:

the Capacity object itself.

withMin

public Capacity withMin(String min)

Set the min property: Minimum Capacity.

Parameters:

min - the min value to set.

Returns:

the Capacity object itself.

Applies to