Share via


PricingDetail Class

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

Implements

public final class PricingDetail
implements JsonSerializable<PricingDetail>

Detailed pricing information for an sku.

Constructor Summary

Constructor Description
PricingDetail()

Creates an instance of PricingDetail class.

Method Summary

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

Reads an instance of PricingDetail from the JsonReader.

String id()

Get the id property: Unique id for this pricing information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The unit cost of this sku.

PricingDetail withId(String id)

Set the id property: Unique id for this pricing information.

PricingDetail withValue(String value)

Set the value property: The unit cost of this sku.

Methods inherited from java.lang.Object

Constructor Details

PricingDetail

public PricingDetail()

Creates an instance of PricingDetail class.

Method Details

fromJson

public static PricingDetail fromJson(JsonReader jsonReader)

Reads an instance of PricingDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Unique id for this pricing information.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The unit cost of this sku.

Returns:

the value value.

withId

public PricingDetail withId(String id)

Set the id property: Unique id for this pricing information.

Parameters:

id - the id value to set.

Returns:

the PricingDetail object itself.

withValue

public PricingDetail withValue(String value)

Set the value property: The unit cost of this sku.

Parameters:

value - the value value to set.

Returns:

the PricingDetail object itself.

Applies to