次の方法で共有


QuotaDimension Class

  • java.lang.Object
    • com.azure.resourcemanager.quantum.models.QuotaDimension

Implements

public final class QuotaDimension
implements JsonSerializable<QuotaDimension>

Information about a specific quota dimension.

Constructor Summary

Constructor Description
QuotaDimension()

Creates an instance of QuotaDimension class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: A description about this quota dimension.

static QuotaDimension fromJson(JsonReader jsonReader)

Reads an instance of QuotaDimension from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The standard unit of measurement used for this quota dimension.

String unitPlural()

Get the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.

void validate()

Validates the instance.

QuotaDimension withDescription(String description)

Set the description property: A description about this quota dimension.

QuotaDimension withId(String id)

Set the id property: Unique id of this dimension.

QuotaDimension withName(String name)

Set the name property: The display name of this quota dimension.

QuotaDimension withPeriod(String period)

Set the period property: The reset period of this quota dimension.

QuotaDimension withQuota(Float quota)

Set the quota property: The max limit of this dimension.

QuotaDimension withScope(String scope)

Set the scope property: The scope of this quota dimension.

QuotaDimension withUnit(String unit)

Set the unit property: The standard unit of measurement used for this quota dimension.

QuotaDimension withUnitPlural(String unitPlural)

Set the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.

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:

the description value.

fromJson

public static QuotaDimension fromJson(JsonReader jsonReader)

Reads an instance of QuotaDimension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Unique id of this dimension.

Returns:

the id value.

name

public String name()

Get the name property: The display name of this quota dimension.

Returns:

the name value.

period

public String period()

Get the period property: The reset period of this quota dimension.

Returns:

the period value.

quota

public Float quota()

Get the quota property: The max limit of this dimension.

Returns:

the quota value.

scope

public String scope()

Get the scope property: The scope of this quota dimension.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The standard unit of measurement used for this quota dimension.

Returns:

the unit value.

unitPlural

public String unitPlural()

Get the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.

Returns:

the unitPlural value.

validate

public void validate()

Validates the instance.

withDescription

public QuotaDimension withDescription(String description)

Set the description property: A description about this quota dimension.

Parameters:

description - the description value to set.

Returns:

the QuotaDimension object itself.

withId

public QuotaDimension withId(String id)

Set the id property: Unique id of this dimension.

Parameters:

id - the id value to set.

Returns:

the QuotaDimension object itself.

withName

public QuotaDimension withName(String name)

Set the name property: The display name of this quota dimension.

Parameters:

name - the name value to set.

Returns:

the QuotaDimension object itself.

withPeriod

public QuotaDimension withPeriod(String period)

Set the period property: The reset period of this quota dimension.

Parameters:

period - the period value to set.

Returns:

the QuotaDimension object itself.

withQuota

public QuotaDimension withQuota(Float quota)

Set the quota property: The max limit of this dimension.

Parameters:

quota - the quota value to set.

Returns:

the QuotaDimension object itself.

withScope

public QuotaDimension withScope(String scope)

Set the scope property: The scope of this quota dimension.

Parameters:

scope - the scope value to set.

Returns:

the QuotaDimension object itself.

withUnit

public QuotaDimension withUnit(String unit)

Set the unit property: The standard unit of measurement used for this quota dimension.

Parameters:

unit - the unit value to set.

Returns:

the QuotaDimension object itself.

withUnitPlural

public QuotaDimension withUnitPlural(String unitPlural)

Set the unitPlural property: The standard unit of measurement used for this quota dimension in plural form.

Parameters:

unitPlural - the unitPlural value to set.

Returns:

the QuotaDimension object itself.

Applies to