Class LotSummaryInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.consumption.fluent.models.LotSummaryInner
-
public final class LotSummaryInner extends com.azure.core.management.ProxyResource
A lot summary resource.
-
-
Constructor Summary
Constructors Constructor Description LotSummaryInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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.void
validate()
Validates the instance.LotSummaryInner
withEtag(String etag)
Set the etag property: eTag of the resource.
-
-
-
Method Detail
-
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.
-
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.
-
originalAmount
public Amount originalAmount()
Get the originalAmount property: The original amount of a lot.- Returns:
- the originalAmount value.
-
closedBalance
public Amount closedBalance()
Get the closedBalance property: The balance as of the last invoice.- Returns:
- the closedBalance 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.
-
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: The expiration date of a lot.- Returns:
- the expirationDate 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.
-
status
public Status status()
Get the status property: The status of the lot.- Returns:
- the status value.
-
creditCurrency
public String creditCurrency()
Get the creditCurrency property: The currency of the lot.- Returns:
- the creditCurrency value.
-
billingCurrency
public String billingCurrency()
Get the billingCurrency property: The billing currency of the lot.- Returns:
- the billingCurrency value.
-
originalAmountInBillingCurrency
public AmountWithExchangeRate originalAmountInBillingCurrency()
Get the originalAmountInBillingCurrency property: The original amount of a lot in billing currency.- Returns:
- the originalAmountInBillingCurrency value.
-
closedBalanceInBillingCurrency
public AmountWithExchangeRate closedBalanceInBillingCurrency()
Get the closedBalanceInBillingCurrency property: The balance as of the last invoice in billing currency.- Returns:
- the closedBalanceInBillingCurrency value.
-
reseller
public Reseller reseller()
Get the reseller property: The reseller of the lot.- Returns:
- the reseller value.
-
etagPropertiesEtag
public String etagPropertiesEtag()
Get the etag property: The eTag for the resource.- Returns:
- the etag value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-