Skip to content

/AWS1/CL_PTBCREDITCODE

Represents an AWS credit code that can be applied to an AWS account for billing purposes.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_awsaccountid TYPE /AWS1/PTBSTRING /AWS1/PTBSTRING

The AWS account ID that the credit code is associated with or can be applied to.

io_value TYPE REF TO /AWS1/CL_PTBMONETARYVALUE /AWS1/CL_PTBMONETARYVALUE

The monetary value of the credit code.

iv_awscreditcode TYPE /AWS1/PTBSTRING /AWS1/PTBSTRING

The actual credit code string that can be redeemed in the AWS billing console.

iv_status TYPE /AWS1/PTBBENEFITALLOCSTATUS /AWS1/PTBBENEFITALLOCSTATUS

The current status of the credit code (e.g., active, redeemed, expired).

iv_issuedat TYPE /AWS1/PTBTIMESTAMP /AWS1/PTBTIMESTAMP

The timestamp when the credit code was issued.

iv_expiresat TYPE /AWS1/PTBTIMESTAMP /AWS1/PTBTIMESTAMP

The timestamp when the credit code expires and can no longer be redeemed.


Queryable Attributes

AwsAccountId

The AWS account ID that the credit code is associated with or can be applied to.

Accessible with the following methods

Method Description
GET_AWSACCOUNTID() Getter for AWSACCOUNTID, with configurable default
ASK_AWSACCOUNTID() Getter for AWSACCOUNTID w/ exceptions if field has no value
HAS_AWSACCOUNTID() Determine if AWSACCOUNTID has a value

Value

The monetary value of the credit code.

Accessible with the following methods

Method Description
GET_VALUE() Getter for VALUE

AwsCreditCode

The actual credit code string that can be redeemed in the AWS billing console.

Accessible with the following methods

Method Description
GET_AWSCREDITCODE() Getter for AWSCREDITCODE, with configurable default
ASK_AWSCREDITCODE() Getter for AWSCREDITCODE w/ exceptions if field has no value
HAS_AWSCREDITCODE() Determine if AWSCREDITCODE has a value

Status

The current status of the credit code (e.g., active, redeemed, expired).

Accessible with the following methods

Method Description
GET_STATUS() Getter for STATUS, with configurable default
ASK_STATUS() Getter for STATUS w/ exceptions if field has no value
HAS_STATUS() Determine if STATUS has a value

IssuedAt

The timestamp when the credit code was issued.

Accessible with the following methods

Method Description
GET_ISSUEDAT() Getter for ISSUEDAT, with configurable default
ASK_ISSUEDAT() Getter for ISSUEDAT w/ exceptions if field has no value
HAS_ISSUEDAT() Determine if ISSUEDAT has a value

ExpiresAt

The timestamp when the credit code expires and can no longer be redeemed.

Accessible with the following methods

Method Description
GET_EXPIRESAT() Getter for EXPIRESAT, with configurable default
ASK_EXPIRESAT() Getter for EXPIRESAT w/ exceptions if field has no value
HAS_EXPIRESAT() Determine if EXPIRESAT 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_CREDITCODES

TYPES TT_CREDITCODES TYPE STANDARD TABLE OF REF TO /AWS1/CL_PTBCREDITCODE WITH DEFAULT KEY
.