次の方法で共有


PricingDimension Class

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

Implements

public final class PricingDimension
implements JsonSerializable<PricingDimension>

Information about pricing dimension.

Constructor Summary

Constructor Description
PricingDimension()

Creates an instance of PricingDimension class.

Method Summary

Modifier and Type Method and Description
static PricingDimension fromJson(JsonReader jsonReader)

Reads an instance of PricingDimension from the JsonReader.

String id()

Get the id property: Unique id of this pricing dimension.

String name()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PricingDimension withId(String id)

Set the id property: Unique id of this pricing dimension.

PricingDimension withName(String name)

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

Methods inherited from java.lang.Object

Constructor Details

PricingDimension

public PricingDimension()

Creates an instance of PricingDimension class.

Method Details

fromJson

public static PricingDimension fromJson(JsonReader jsonReader)

Reads an instance of PricingDimension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Unique id of this pricing dimension.

Returns:

the id value.

name

public String name()

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

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public PricingDimension withId(String id)

Set the id property: Unique id of this pricing dimension.

Parameters:

id - the id value to set.

Returns:

the PricingDimension object itself.

withName

public PricingDimension withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the PricingDimension object itself.

Applies to