Groovy Documentation

com.ace.mws.mam
[Groovy] Class Quote

java.lang.Object
  com.ace.mws.mam.Quote

class Quote

Quotes can be used to determine how much it will cost to use a resource or service. Provided the cost-only option is not specified, this step will additionally verify that the submitter has sufficient funds and meets all the allocation policy requirements for the usage, and can be used at the submission of the usage request as an early filter to prevent the usage from getting blocked when it tries to obtain a reservation to start later. If a guaranteed quote is requested, a quote id is returned and can be used in the subsequent charge to guarantee the rates that were used to form the original quote. A guaranteed quote has the side effect of creating a quote record and a permanent usage record. A quote id will be returned which can be used with the reservation and charge to claim the quoted charge rates. A cost-only quote can be used to determine how much would be charged for usage without verifying sufficient funds or checking to see if the charge could succeed.

Authors:
jpratt


Field Summary
private BigDecimal amount

The total amount of the quote

private Set details

(AppliedChargeRate collection) The applied charges that make up this quote.

private Long id

The unique quote identifier.

private String instance

The quote instance name.

private Long usageRecord

The usage record id associated with this quote.

 
Constructor Summary
Quote()

 
Method Summary
BigDecimal getAmount()

The total amount of the quote

Set getDetails()

(AppliedChargeRate collection) The applied charges that make up this quote.

Long getId()

The unique quote identifier.

String getInstance()

The quote instance name.

Long getUsageRecord()

The usage record id associated with this quote.

void setAmount(BigDecimal amount)

The total amount of the quote

void setDetails(Set details)

(AppliedChargeRate collection) The applied charges that make up this quote.

void setId(Long id)

The unique quote identifier.

void setInstance(String instance)

The quote instance name.

void setUsageRecord(Long usageRecord)

The usage record id associated with this quote.

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

amount

private BigDecimal amount
The total amount of the quote


details

private Set details
(AppliedChargeRate collection) The applied charges that make up this quote.
See Also:
AppliedChargeRate


id

private Long id
The unique quote identifier.


instance

private String instance
The quote instance name. (i.e. job id)


usageRecord

private Long usageRecord
The usage record id associated with this quote.


 
Constructor Detail

Quote

Quote()


 
Method Detail

getAmount

BigDecimal getAmount()
The total amount of the quote


getDetails

Set getDetails()
(AppliedChargeRate collection) The applied charges that make up this quote.
See Also:
AppliedChargeRate


getId

Long getId()
The unique quote identifier.


getInstance

String getInstance()
The quote instance name. (i.e. job id)


getUsageRecord

Long getUsageRecord()
The usage record id associated with this quote.


setAmount

void setAmount(BigDecimal amount)
The total amount of the quote


setDetails

void setDetails(Set details)
(AppliedChargeRate collection) The applied charges that make up this quote.
See Also:
AppliedChargeRate


setId

void setId(Long id)
The unique quote identifier.


setInstance

void setInstance(String instance)
The quote instance name. (i.e. job id)


setUsageRecord

void setUsageRecord(Long usageRecord)
The usage record id associated with this quote.


toString

String toString()


 

Groovy Documentation