QuotaInner Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.fluent.models.QuotaInner

Implements

public final class QuotaInner
implements JsonSerializable<QuotaInner>

Describes a quota for or usage details about a resource.

Constructor Summary

Constructor Description
QuotaInner()

Creates an instance of QuotaInner class.

Method Summary

Modifier and Type Method and Description
Double currentValue()

Get the currentValue property: The current value of the quota.

static QuotaInner fromJson(JsonReader jsonReader)

Reads an instance of QuotaInner from the JsonReader.

String id()

Get the id property: The resource ID of the quota object.

Double limit()

Get the limit property: The maximum value of the quota.

QuotaName name()

Get the name property: The name of the quota.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.

void validate()

Validates the instance.

QuotaInner withCurrentValue(Double currentValue)

Set the currentValue property: The current value of the quota.

QuotaInner withId(String id)

Set the id property: The resource ID of the quota object.

QuotaInner withLimit(Double limit)

Set the limit property: The maximum value of the quota.

QuotaInner withName(QuotaName name)

Set the name property: The name of the quota.

QuotaInner withUnit(String unit)

Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.

Methods inherited from java.lang.Object

Constructor Details

QuotaInner

public QuotaInner()

Creates an instance of QuotaInner class.

Method Details

currentValue

public Double currentValue()

Get the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.

Returns:

the currentValue value.

fromJson

public static QuotaInner fromJson(JsonReader jsonReader)

Reads an instance of QuotaInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The resource ID of the quota object.

Returns:

the id value.

limit

public Double limit()

Get the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.

Returns:

the limit value.

name

public QuotaName name()

Get the name property: The name of the quota.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withCurrentValue

public QuotaInner withCurrentValue(Double currentValue)

Set the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.

Parameters:

currentValue - the currentValue value to set.

Returns:

the QuotaInner object itself.

withId

public QuotaInner withId(String id)

Set the id property: The resource ID of the quota object.

Parameters:

id - the id value to set.

Returns:

the QuotaInner object itself.

withLimit

public QuotaInner withLimit(Double limit)

Set the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.

Parameters:

limit - the limit value to set.

Returns:

the QuotaInner object itself.

withName

public QuotaInner withName(QuotaName name)

Set the name property: The name of the quota.

Parameters:

name - the name value to set.

Returns:

the QuotaInner object itself.

withUnit

public QuotaInner withUnit(String unit)

Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.

Parameters:

unit - the unit value to set.

Returns:

the QuotaInner object itself.

Applies to