BalanceInner Class

public final class BalanceInner
extends ProxyResource

A balance resource.

Constructor Summary

Constructor Description
BalanceInner()

Creates an instance of BalanceInner class.

Method Summary

Modifier and Type Method and Description
List<BalancePropertiesAdjustmentDetailsItem> adjustmentDetails()

Get the adjustmentDetails property: List of Adjustments (Promo credit, SIE credit etc.).

BigDecimal adjustments()

Get the adjustments property: Total adjustment amount.

BigDecimal azureMarketplaceServiceCharges()

Get the azureMarketplaceServiceCharges property: Total charges for Azure Marketplace.

BigDecimal beginningBalance()

Get the beginningBalance property: The beginning balance for the billing period.

BillingFrequency billingFrequency()

Get the billingFrequency property: The billing frequency.

BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed separately.

String currency()

Get the currency property: The ISO currency in which the meter is charged, for example, USD.

BigDecimal endingBalance()

Get the endingBalance property: The ending balance for the billing period (for open periods this will be updated daily).

String etag()

Get the etag property: The etag for the resource.

static BalanceInner fromJson(JsonReader jsonReader)

Reads an instance of BalanceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

BigDecimal newPurchases()

Get the newPurchases property: Total new purchase amount.

List<BalancePropertiesNewPurchasesDetailsItem> newPurchasesDetails()

Get the newPurchasesDetails property: List of new purchases.

Boolean priceHidden()

Get the priceHidden property: Price is hidden or not.

BigDecimal serviceOverage()

Get the serviceOverage property: Overage for Azure services.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
BigDecimal totalOverage()

Get the totalOverage property: serviceOverage + chargesBilledSeparately.

BigDecimal totalUsage()

Get the totalUsage property: Azure service commitment + total Overage.

String type()

Get the type property: The type of the resource.

BigDecimal utilized()

Get the utilized property: Total Commitment usage.

void validate()

Validates the instance.

BalanceInner withBillingFrequency(BillingFrequency billingFrequency)

Set the billingFrequency property: The billing frequency.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

BalanceInner

public BalanceInner()

Creates an instance of BalanceInner class.

Method Details

adjustmentDetails

public List<BalancePropertiesAdjustmentDetailsItem> adjustmentDetails()

Get the adjustmentDetails property: List of Adjustments (Promo credit, SIE credit etc.).

Returns:

the adjustmentDetails value.

adjustments

public BigDecimal adjustments()

Get the adjustments property: Total adjustment amount.

Returns:

the adjustments value.

azureMarketplaceServiceCharges

public BigDecimal azureMarketplaceServiceCharges()

Get the azureMarketplaceServiceCharges property: Total charges for Azure Marketplace.

Returns:

the azureMarketplaceServiceCharges value.

beginningBalance

public BigDecimal beginningBalance()

Get the beginningBalance property: The beginning balance for the billing period.

Returns:

the beginningBalance value.

billingFrequency

public BillingFrequency billingFrequency()

Get the billingFrequency property: The billing frequency.

Returns:

the billingFrequency value.

chargesBilledSeparately

public BigDecimal chargesBilledSeparately()

Get the chargesBilledSeparately property: Charges Billed separately.

Returns:

the chargesBilledSeparately value.

currency

public String currency()

Get the currency property: The ISO currency in which the meter is charged, for example, USD.

Returns:

the currency value.

endingBalance

public BigDecimal endingBalance()

Get the endingBalance property: The ending balance for the billing period (for open periods this will be updated daily).

Returns:

the endingBalance value.

etag

public String etag()

Get the etag property: The etag for the resource.

Returns:

the etag value.

fromJson

public static BalanceInner fromJson(JsonReader jsonReader)

Reads an instance of BalanceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BalanceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

BalanceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

BalanceInner.name()

Returns:

the name value.

newPurchases

public BigDecimal newPurchases()

Get the newPurchases property: Total new purchase amount.

Returns:

the newPurchases value.

newPurchasesDetails

public List<BalancePropertiesNewPurchasesDetailsItem> newPurchasesDetails()

Get the newPurchasesDetails property: List of new purchases.

Returns:

the newPurchasesDetails value.

priceHidden

public Boolean priceHidden()

Get the priceHidden property: Price is hidden or not.

Returns:

the priceHidden value.

serviceOverage

public BigDecimal serviceOverage()

Get the serviceOverage property: Overage for Azure services.

Returns:

the serviceOverage value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BalanceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalOverage

public BigDecimal totalOverage()

Get the totalOverage property: serviceOverage + chargesBilledSeparately.

Returns:

the totalOverage value.

totalUsage

public BigDecimal totalUsage()

Get the totalUsage property: Azure service commitment + total Overage.

Returns:

the totalUsage value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

BalanceInner.type()

Returns:

the type value.

utilized

public BigDecimal utilized()

Get the utilized property: Total Commitment usage.

Returns:

the utilized value.

validate

public void validate()

Validates the instance.

withBillingFrequency

public BalanceInner withBillingFrequency(BillingFrequency billingFrequency)

Set the billingFrequency property: The billing frequency.

Parameters:

billingFrequency - the billingFrequency value to set.

Returns:

the BalanceInner object itself.

Applies to