Skip to content

/AWS1/CL_EC2PURCHASEHOSTRESE01

PurchaseHostReservationResult

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_CLIENTTOKEN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

IV_CURRENCYCODE TYPE /AWS1/EC2CURRENCYCODEVALUES /AWS1/EC2CURRENCYCODEVALUES

The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

IT_PURCHASE TYPE /AWS1/CL_EC2PURCHASE=>TT_PURCHASESET TT_PURCHASESET

Describes the details of the purchase.

IV_TOTALHOURLYPRICE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The total hourly price of the reservation calculated per hour.

IV_TOTALUPFRONTPRICE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The total amount charged to your account when you purchase the reservation.


Queryable Attributes

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

Accessible with the following methods

Method Description
GET_CLIENTTOKEN() Getter for CLIENTTOKEN, with configurable default
ASK_CLIENTTOKEN() Getter for CLIENTTOKEN w/ exceptions if field has no value
HAS_CLIENTTOKEN() Determine if CLIENTTOKEN has a value

CurrencyCode

The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

Accessible with the following methods

Method Description
GET_CURRENCYCODE() Getter for CURRENCYCODE, with configurable default
ASK_CURRENCYCODE() Getter for CURRENCYCODE w/ exceptions if field has no value
HAS_CURRENCYCODE() Determine if CURRENCYCODE has a value

Purchase

Describes the details of the purchase.

Accessible with the following methods

Method Description
GET_PURCHASE() Getter for PURCHASE, with configurable default
ASK_PURCHASE() Getter for PURCHASE w/ exceptions if field has no value
HAS_PURCHASE() Determine if PURCHASE has a value

TotalHourlyPrice

The total hourly price of the reservation calculated per hour.

Accessible with the following methods

Method Description
GET_TOTALHOURLYPRICE() Getter for TOTALHOURLYPRICE, with configurable default
ASK_TOTALHOURLYPRICE() Getter for TOTALHOURLYPRICE w/ exceptions if field has no va
HAS_TOTALHOURLYPRICE() Determine if TOTALHOURLYPRICE has a value

TotalUpfrontPrice

The total amount charged to your account when you purchase the reservation.

Accessible with the following methods

Method Description
GET_TOTALUPFRONTPRICE() Getter for TOTALUPFRONTPRICE, with configurable default
ASK_TOTALUPFRONTPRICE() Getter for TOTALUPFRONTPRICE w/ exceptions if field has no v
HAS_TOTALUPFRONTPRICE() Determine if TOTALUPFRONTPRICE has a value