LotSummaryInner Class

public final class LotSummaryInner
extends ProxyResource

A lot summary resource.

Constructor Summary

Constructor Description
LotSummaryInner()

Creates an instance of LotSummaryInner 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: eTag of the resource.

String etagPropertiesEtag()

Get the etag property: The eTag for the resource.

OffsetDateTime expirationDate()

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

static LotSummaryInner fromJson(JsonReader jsonReader)

Reads an instance of LotSummaryInner 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.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

LotSummaryInner withEtag(String etag)

Set the etag property: eTag of the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

LotSummaryInner

public LotSummaryInner()

Creates an instance of LotSummaryInner 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: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

Returns:

the etag value.

etagPropertiesEtag

public String etagPropertiesEtag()

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 LotSummaryInner fromJson(JsonReader jsonReader)

Reads an instance of LotSummaryInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LotSummaryInner 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:

LotSummaryInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

LotSummaryInner.name()

Returns:

the name value.

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)

Overrides:

LotSummaryInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LotSummaryInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEtag

public LotSummaryInner withEtag(String etag)

Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

Parameters:

etag - the etag value to set.

Returns:

the LotSummaryInner object itself.

Applies to