QuotaDimension Class
- java.
lang. Object - com.
azure. resourcemanager. quantum. models. QuotaDimension
- com.
Implements
public final class QuotaDimension
implements JsonSerializable<QuotaDimension>
Information about a specific quota dimension.
Constructor Summary
| Constructor | Description |
|---|---|
| QuotaDimension() |
Creates an instance of Quota |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: A description about this quota dimension. |
|
static
Quota |
fromJson(JsonReader jsonReader)
Reads an instance of Quota |
| String |
id()
Get the id property: Unique id of this dimension. |
| String |
name()
Get the name property: The display name of this quota dimension. |
| String |
period()
Get the period property: The reset period of this quota dimension. |
| Float |
quota()
Get the quota property: The max limit of this dimension. |
| String |
scope()
Get the scope property: The scope of this quota dimension. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
unit()
Get the unit property: The standard unit of measurement used for this quota dimension. |
| String |
unitPlural()
Get the unit |
| void |
validate()
Validates the instance. |
|
Quota |
withDescription(String description)
Set the description property: A description about this quota dimension. |
|
Quota |
withId(String id)
Set the id property: Unique id of this dimension. |
|
Quota |
withName(String name)
Set the name property: The display name of this quota dimension. |
|
Quota |
withPeriod(String period)
Set the period property: The reset period of this quota dimension. |
|
Quota |
withQuota(Float quota)
Set the quota property: The max limit of this dimension. |
|
Quota |
withScope(String scope)
Set the scope property: The scope of this quota dimension. |
|
Quota |
withUnit(String unit)
Set the unit property: The standard unit of measurement used for this quota dimension. |
|
Quota |
withUnitPlural(String unitPlural)
Set the unit |
Methods inherited from java.lang.Object
Constructor Details
QuotaDimension
public QuotaDimension()
Creates an instance of QuotaDimension class.
Method Details
description
public String description()
Get the description property: A description about this quota dimension.
Returns:
fromJson
public static QuotaDimension fromJson(JsonReader jsonReader)
Reads an instance of QuotaDimension from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Unique id of this dimension.
Returns:
name
public String name()
Get the name property: The display name of this quota dimension.
Returns:
period
public String period()
Get the period property: The reset period of this quota dimension.
Returns:
quota
public Float quota()
Get the quota property: The max limit of this dimension.
Returns:
scope
public String scope()
Get the scope property: The scope of this quota dimension.
Returns:
toJson
unit
public String unit()
Get the unit property: The standard unit of measurement used for this quota dimension.
Returns:
unitPlural
public String unitPlural()
Get the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.
Returns:
validate
public void validate()
Validates the instance.
withDescription
public QuotaDimension withDescription(String description)
Set the description property: A description about this quota dimension.
Parameters:
Returns:
withId
public QuotaDimension withId(String id)
Set the id property: Unique id of this dimension.
Parameters:
Returns:
withName
public QuotaDimension withName(String name)
Set the name property: The display name of this quota dimension.
Parameters:
Returns:
withPeriod
public QuotaDimension withPeriod(String period)
Set the period property: The reset period of this quota dimension.
Parameters:
Returns:
withQuota
public QuotaDimension withQuota(Float quota)
Set the quota property: The max limit of this dimension.
Parameters:
Returns:
withScope
public QuotaDimension withScope(String scope)
Set the scope property: The scope of this quota dimension.
Parameters:
Returns:
withUnit
public QuotaDimension withUnit(String unit)
Set the unit property: The standard unit of measurement used for this quota dimension.
Parameters:
Returns:
withUnitPlural
public QuotaDimension withUnitPlural(String unitPlural)
Set the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.
Parameters:
Returns: