Skip to content

/AWS1/CL_EC2PURCHASE

Describes the result of the purchase.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_CURRENCYCODE TYPE /AWS1/EC2CURRENCYCODEVALUES /AWS1/EC2CURRENCYCODEVALUES

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

IV_DURATION TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The duration of the reservation's term in seconds.

IT_HOSTIDSET TYPE /AWS1/CL_EC2RSPHOSTIDSET_W=>TT_RESPONSEHOSTIDSET TT_RESPONSEHOSTIDSET

The IDs of the Dedicated Hosts associated with the reservation.

IV_HOSTRESERVATIONID TYPE /AWS1/EC2HOSTRESERVATIONID /AWS1/EC2HOSTRESERVATIONID

The ID of the reservation.

IV_HOURLYPRICE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The hourly price of the reservation per hour.

IV_INSTANCEFAMILY TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The instance family on the Dedicated Host that the reservation can be associated with.

IV_PAYMENTOPTION TYPE /AWS1/EC2PAYMENTOPTION /AWS1/EC2PAYMENTOPTION

The payment option for the reservation.

IV_UPFRONTPRICE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The upfront price of the reservation.


Queryable Attributes

CurrencyCode

The currency in which the UpfrontPrice and HourlyPrice 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

Duration

The duration of the reservation's term in seconds.

Accessible with the following methods

Method Description
GET_DURATION() Getter for DURATION, with configurable default
ASK_DURATION() Getter for DURATION w/ exceptions if field has no value
HAS_DURATION() Determine if DURATION has a value

HostIdSet

The IDs of the Dedicated Hosts associated with the reservation.

Accessible with the following methods

Method Description
GET_HOSTIDSET() Getter for HOSTIDSET, with configurable default
ASK_HOSTIDSET() Getter for HOSTIDSET w/ exceptions if field has no value
HAS_HOSTIDSET() Determine if HOSTIDSET has a value

HostReservationId

The ID of the reservation.

Accessible with the following methods

Method Description
GET_HOSTRESERVATIONID() Getter for HOSTRESERVATIONID, with configurable default
ASK_HOSTRESERVATIONID() Getter for HOSTRESERVATIONID w/ exceptions if field has no v
HAS_HOSTRESERVATIONID() Determine if HOSTRESERVATIONID has a value

HourlyPrice

The hourly price of the reservation per hour.

Accessible with the following methods

Method Description
GET_HOURLYPRICE() Getter for HOURLYPRICE, with configurable default
ASK_HOURLYPRICE() Getter for HOURLYPRICE w/ exceptions if field has no value
HAS_HOURLYPRICE() Determine if HOURLYPRICE has a value

InstanceFamily

The instance family on the Dedicated Host that the reservation can be associated with.

Accessible with the following methods

Method Description
GET_INSTANCEFAMILY() Getter for INSTANCEFAMILY, with configurable default
ASK_INSTANCEFAMILY() Getter for INSTANCEFAMILY w/ exceptions if field has no valu
HAS_INSTANCEFAMILY() Determine if INSTANCEFAMILY has a value

PaymentOption

The payment option for the reservation.

Accessible with the following methods

Method Description
GET_PAYMENTOPTION() Getter for PAYMENTOPTION, with configurable default
ASK_PAYMENTOPTION() Getter for PAYMENTOPTION w/ exceptions if field has no value
HAS_PAYMENTOPTION() Determine if PAYMENTOPTION has a value

UpfrontPrice

The upfront price of the reservation.

Accessible with the following methods

Method Description
GET_UPFRONTPRICE() Getter for UPFRONTPRICE, with configurable default
ASK_UPFRONTPRICE() Getter for UPFRONTPRICE w/ exceptions if field has no value
HAS_UPFRONTPRICE() Determine if UPFRONTPRICE has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_PURCHASESET

TYPES TT_PURCHASESET TYPE STANDARD TABLE OF REF TO /AWS1/CL_EC2PURCHASE WITH DEFAULT KEY
.