PriceSheetProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.PriceSheetProperties

Implements

public final class PriceSheetProperties
implements JsonSerializable<PriceSheetProperties>

The properties of the price sheet.

Constructor Summary

Constructor Description
PriceSheetProperties()

Creates an instance of PriceSheetProperties class.

Method Summary

Modifier and Type Method and Description
String billingPeriodId()

Get the billingPeriodId property: The id of the billing period resource that the usage belongs to.

String currencyCode()

Get the currencyCode property: Currency Code.

static PriceSheetProperties fromJson(JsonReader jsonReader)

Reads an instance of PriceSheetProperties from the JsonReader.

BigDecimal includedQuantity()

Get the includedQuantity property: Included quality for an offer.

MeterDetails meterDetails()

Get the meterDetails property: The details about the meter.

UUID meterId()

Get the meterId property: The meter id (GUID).

String offerId()

Get the offerId property: Offer Id.

String partNumber()

Get the partNumber property: Part Number.

JsonWriter toJson(JsonWriter jsonWriter)
String unitOfMeasure()

Get the unitOfMeasure property: Unit of measure.

BigDecimal unitPrice()

Get the unitPrice property: Unit Price.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

PriceSheetProperties

public PriceSheetProperties()

Creates an instance of PriceSheetProperties class.

Method Details

billingPeriodId

public String billingPeriodId()

Get the billingPeriodId property: The id of the billing period resource that the usage belongs to.

Returns:

the billingPeriodId value.

currencyCode

public String currencyCode()

Get the currencyCode property: Currency Code.

Returns:

the currencyCode value.

fromJson

public static PriceSheetProperties fromJson(JsonReader jsonReader)

Reads an instance of PriceSheetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

includedQuantity

public BigDecimal includedQuantity()

Get the includedQuantity property: Included quality for an offer.

Returns:

the includedQuantity value.

meterDetails

public MeterDetails meterDetails()

Get the meterDetails property: The details about the meter. By default this is not populated, unless it's specified in $expand.

Returns:

the meterDetails value.

meterId

public UUID meterId()

Get the meterId property: The meter id (GUID).

Returns:

the meterId value.

offerId

public String offerId()

Get the offerId property: Offer Id.

Returns:

the offerId value.

partNumber

public String partNumber()

Get the partNumber property: Part Number.

Returns:

the partNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unitOfMeasure

public String unitOfMeasure()

Get the unitOfMeasure property: Unit of measure.

Returns:

the unitOfMeasure value.

unitPrice

public BigDecimal unitPrice()

Get the unitPrice property: Unit Price.

Returns:

the unitPrice value.

validate

public void validate()

Validates the instance.

Applies to