AvailableBalanceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.AvailableBalanceProperties

Implements

public final class AvailableBalanceProperties
implements JsonSerializable<AvailableBalanceProperties>

The Available Credit or Payment on Account Balance. The credit balance can be used to settle due or past due invoices.

Constructor Summary

Constructor Description
AvailableBalanceProperties()

Creates an instance of AvailableBalanceProperties class.

Method Summary

Modifier and Type Method and Description
AvailableBalancePropertiesAmount amount()

Get the amount property: Credit amount for immediate payment.

static AvailableBalanceProperties fromJson(JsonReader jsonReader)

Reads an instance of AvailableBalanceProperties from the JsonReader.

List<PaymentOnAccount> paymentsOnAccount()

Get the paymentsOnAccount property: The list of payments on accounts.

JsonWriter toJson(JsonWriter jsonWriter)
AvailableBalancePropertiesTotalPaymentsOnAccount totalPaymentsOnAccount()

Get the totalPaymentsOnAccount property: Total amount of payments on accounts.

void validate()

Validates the instance.

AvailableBalanceProperties withAmount(AvailableBalancePropertiesAmount amount)

Set the amount property: Credit amount for immediate payment.

AvailableBalanceProperties withTotalPaymentsOnAccount(AvailableBalancePropertiesTotalPaymentsOnAccount totalPaymentsOnAccount)

Set the totalPaymentsOnAccount property: Total amount of payments on accounts.

Methods inherited from java.lang.Object

Constructor Details

AvailableBalanceProperties

public AvailableBalanceProperties()

Creates an instance of AvailableBalanceProperties class.

Method Details

amount

public AvailableBalancePropertiesAmount amount()

Get the amount property: Credit amount for immediate payment.

Returns:

the amount value.

fromJson

public static AvailableBalanceProperties fromJson(JsonReader jsonReader)

Reads an instance of AvailableBalanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

paymentsOnAccount

public List<PaymentOnAccount> paymentsOnAccount()

Get the paymentsOnAccount property: The list of payments on accounts.

Returns:

the paymentsOnAccount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalPaymentsOnAccount

public AvailableBalancePropertiesTotalPaymentsOnAccount totalPaymentsOnAccount()

Get the totalPaymentsOnAccount property: Total amount of payments on accounts.

Returns:

the totalPaymentsOnAccount value.

validate

public void validate()

Validates the instance.

withAmount

public AvailableBalanceProperties withAmount(AvailableBalancePropertiesAmount amount)

Set the amount property: Credit amount for immediate payment.

Parameters:

amount - the amount value to set.

Returns:

the AvailableBalanceProperties object itself.

withTotalPaymentsOnAccount

public AvailableBalanceProperties withTotalPaymentsOnAccount(AvailableBalancePropertiesTotalPaymentsOnAccount totalPaymentsOnAccount)

Set the totalPaymentsOnAccount property: Total amount of payments on accounts.

Parameters:

totalPaymentsOnAccount - the totalPaymentsOnAccount value to set.

Returns:

the AvailableBalanceProperties object itself.

Applies to