LotProperties Class

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

Implements

public final class LotProperties
implements JsonSerializable<LotProperties>

The lot properties.

Constructor Summary

Constructor Description
LotProperties()

Creates an instance of LotProperties class.

Method Summary

Modifier and Type Method and Description
String billingCurrency()

Get the billingCurrency property: The billing currency of the lot.

Amount closedBalance()

Get the closedBalance property: The balance as of the last invoice.

AmountWithExchangeRate closedBalanceInBillingCurrency()

Get the closedBalanceInBillingCurrency property: The balance as of the last invoice in billing currency.

String creditCurrency()

Get the creditCurrency property: The currency of the lot.

String etag()

Get the etag property: The eTag for the resource.

OffsetDateTime expirationDate()

Get the expirationDate property: The expiration date of a lot.

static LotProperties fromJson(JsonReader jsonReader)

Reads an instance of LotProperties from the JsonReader.

Amount originalAmount()

Get the originalAmount property: The original amount of a lot.

AmountWithExchangeRate originalAmountInBillingCurrency()

Get the originalAmountInBillingCurrency property: The original amount of a lot in billing currency.

String poNumber()

Get the poNumber property: The po number of the invoice on which the lot was added.

OffsetDateTime purchasedDate()

Get the purchasedDate property: The date when the lot was added.

Reseller reseller()

Get the reseller property: The reseller of the lot.

LotSource source()

Get the source property: The source of the lot.

OffsetDateTime startDate()

Get the startDate property: The date when the lot became effective.

Status status()

Get the status property: The status of the lot.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

LotProperties

public LotProperties()

Creates an instance of LotProperties class.

Method Details

billingCurrency

public String billingCurrency()

Get the billingCurrency property: The billing currency of the lot.

Returns:

the billingCurrency value.

closedBalance

public Amount closedBalance()

Get the closedBalance property: The balance as of the last invoice.

Returns:

the closedBalance value.

closedBalanceInBillingCurrency

public AmountWithExchangeRate closedBalanceInBillingCurrency()

Get the closedBalanceInBillingCurrency property: The balance as of the last invoice in billing currency.

Returns:

the closedBalanceInBillingCurrency value.

creditCurrency

public String creditCurrency()

Get the creditCurrency property: The currency of the lot.

Returns:

the creditCurrency value.

etag

public String etag()

Get the etag property: The eTag for the resource.

Returns:

the etag value.

expirationDate

public OffsetDateTime expirationDate()

Get the expirationDate property: The expiration date of a lot.

Returns:

the expirationDate value.

fromJson

public static LotProperties fromJson(JsonReader jsonReader)

Reads an instance of LotProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

originalAmount

public Amount originalAmount()

Get the originalAmount property: The original amount of a lot.

Returns:

the originalAmount value.

originalAmountInBillingCurrency

public AmountWithExchangeRate originalAmountInBillingCurrency()

Get the originalAmountInBillingCurrency property: The original amount of a lot in billing currency.

Returns:

the originalAmountInBillingCurrency value.

poNumber

public String poNumber()

Get the poNumber property: The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots.

Returns:

the poNumber value.

purchasedDate

public OffsetDateTime purchasedDate()

Get the purchasedDate property: The date when the lot was added.

Returns:

the purchasedDate value.

reseller

public Reseller reseller()

Get the reseller property: The reseller of the lot.

Returns:

the reseller value.

source

public LotSource source()

Get the source property: The source of the lot.

Returns:

the source value.

startDate

public OffsetDateTime startDate()

Get the startDate property: The date when the lot became effective.

Returns:

the startDate value.

status

public Status status()

Get the status property: The status of the lot.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to