LegacyChargeSummaryProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.fluent.models.LegacyChargeSummaryProperties

Implements

public final class LegacyChargeSummaryProperties
implements JsonSerializable<LegacyChargeSummaryProperties>

The properties of legacy charge summary.

Constructor Summary

Constructor Description
LegacyChargeSummaryProperties()

Creates an instance of LegacyChargeSummaryProperties class.

Method Summary

Modifier and Type Method and Description
BigDecimal azureCharges()

Get the azureCharges property: Azure Charges.

BigDecimal azureMarketplaceCharges()

Get the azureMarketplaceCharges property: Marketplace Charges.

String billingPeriodId()

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

BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed separately.

String currency()

Get the currency property: Currency Code.

static LegacyChargeSummaryProperties fromJson(JsonReader jsonReader)

Reads an instance of LegacyChargeSummaryProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String usageEnd()

Get the usageEnd property: Usage end date.

String usageStart()

Get the usageStart property: Usage start date.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

LegacyChargeSummaryProperties

public LegacyChargeSummaryProperties()

Creates an instance of LegacyChargeSummaryProperties class.

Method Details

azureCharges

public BigDecimal azureCharges()

Get the azureCharges property: Azure Charges.

Returns:

the azureCharges value.

azureMarketplaceCharges

public BigDecimal azureMarketplaceCharges()

Get the azureMarketplaceCharges property: Marketplace Charges.

Returns:

the azureMarketplaceCharges value.

billingPeriodId

public String billingPeriodId()

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

Returns:

the billingPeriodId value.

chargesBilledSeparately

public BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed separately.

Returns:

the chargesBilledSeparately value.

currency

public String currency()

Get the currency property: Currency Code.

Returns:

the currency value.

fromJson

public static LegacyChargeSummaryProperties fromJson(JsonReader jsonReader)

Reads an instance of LegacyChargeSummaryProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usageEnd

public String usageEnd()

Get the usageEnd property: Usage end date.

Returns:

the usageEnd value.

usageStart

public String usageStart()

Get the usageStart property: Usage start date.

Returns:

the usageStart value.

validate

public void validate()

Validates the instance.

Applies to