QuotaInner Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. fluent. models. QuotaInner
- com.
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 Quota |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Double |
currentValue()
Get the current |
|
static
Quota |
fromJson(JsonReader jsonReader)
Reads an instance of Quota |
| 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. |
|
Quota |
name()
Get the name property: The name of the quota. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
unit()
Get the unit property: The unit for the quota, such as Count, Bytes, Bytes |
| void |
validate()
Validates the instance. |
|
Quota |
withCurrentValue(Double currentValue)
Set the current |
|
Quota |
withId(String id)
Set the id property: The resource ID of the quota object. |
|
Quota |
withLimit(Double limit)
Set the limit property: The maximum value of the quota. |
|
Quota |
withName(QuotaName name)
Set the name property: The name of the quota. |
|
Quota |
withUnit(String unit)
Set the unit property: The unit for the quota, such as Count, Bytes, Bytes |
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:
fromJson
public static QuotaInner fromJson(JsonReader jsonReader)
Reads an instance of QuotaInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The resource ID of the quota object.
Returns:
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:
name
public QuotaName name()
Get the name property: The name of the quota.
Returns:
toJson
unit
public String unit()
Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
Returns:
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:
Returns:
withId
public QuotaInner withId(String id)
Set the id property: The resource ID of the quota object.
Parameters:
Returns:
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:
Returns:
withName
public QuotaInner withName(QuotaName name)
Set the name property: The name of the quota.
Parameters:
Returns:
withUnit
public QuotaInner withUnit(String unit)
Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
Parameters:
Returns: