CreditSummaryProperties Class

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

Implements

public final class CreditSummaryProperties
implements JsonSerializable<CreditSummaryProperties>

The properties of the credit summary.

Constructor Summary

Constructor Description
CreditSummaryProperties()

Creates an instance of CreditSummaryProperties class.

Method Summary

Modifier and Type Method and Description
CreditBalanceSummary balanceSummary()

Get the balanceSummary property: Summary of balances associated with this credit summary.

String billingCurrency()

Get the billingCurrency property: The billing currency.

String creditCurrency()

Get the creditCurrency property: The credit currency.

String etag()

Get the etag property: The eTag for the resource.

Amount expiredCredit()

Get the expiredCredit property: Expired credit.

static CreditSummaryProperties fromJson(JsonReader jsonReader)

Reads an instance of CreditSummaryProperties from the JsonReader.

Amount pendingCreditAdjustments()

Get the pendingCreditAdjustments property: Pending credit adjustments.

Amount pendingEligibleCharges()

Get the pendingEligibleCharges property: Pending eligible charges.

Reseller reseller()

Get the reseller property: Credit's reseller.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

CreditSummaryProperties

public CreditSummaryProperties()

Creates an instance of CreditSummaryProperties class.

Method Details

balanceSummary

public CreditBalanceSummary balanceSummary()

Get the balanceSummary property: Summary of balances associated with this credit summary.

Returns:

the balanceSummary value.

billingCurrency

public String billingCurrency()

Get the billingCurrency property: The billing currency.

Returns:

the billingCurrency value.

creditCurrency

public String creditCurrency()

Get the creditCurrency property: The credit currency.

Returns:

the creditCurrency value.

etag

public String etag()

Get the etag property: The eTag for the resource.

Returns:

the etag value.

expiredCredit

public Amount expiredCredit()

Get the expiredCredit property: Expired credit.

Returns:

the expiredCredit value.

fromJson

public static CreditSummaryProperties fromJson(JsonReader jsonReader)

Reads an instance of CreditSummaryProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

pendingCreditAdjustments

public Amount pendingCreditAdjustments()

Get the pendingCreditAdjustments property: Pending credit adjustments.

Returns:

the pendingCreditAdjustments value.

pendingEligibleCharges

public Amount pendingEligibleCharges()

Get the pendingEligibleCharges property: Pending eligible charges.

Returns:

the pendingEligibleCharges value.

reseller

public Reseller reseller()

Get the reseller property: Credit's reseller.

Returns:

the reseller value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to