/AWS1/CL_MPMUSAGERECORDRESULT¶
A UsageRecordResult indicates the status of a given
UsageRecord processed by BatchMeterUsage.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
io_usagerecord TYPE REF TO /AWS1/CL_MPMUSAGERECORD /AWS1/CL_MPMUSAGERECORD¶
The
UsageRecordthat was part of theBatchMeterUsagerequest.
iv_meteringrecordid TYPE /AWS1/MPMSTRING /AWS1/MPMSTRING¶
The
MeteringRecordIdis a unique identifier for this metering event.
iv_status TYPE /AWS1/MPMUSAGERECRESULTSTATUS /AWS1/MPMUSAGERECRESULTSTATUS¶
The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage.CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas not honored. There are three causes for this result:
The customer identifier is invalid.
The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future
UsageRecordsfor this customer will fail until the customer subscribes to your product.The customer's Amazon Web Services account was suspended.
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad the same customer, dimension, and time, but a different quantity.
Queryable Attributes¶
UsageRecord¶
The
UsageRecordthat was part of theBatchMeterUsagerequest.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_USAGERECORD() |
Getter for USAGERECORD |
MeteringRecordId¶
The
MeteringRecordIdis a unique identifier for this metering event.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METERINGRECORDID() |
Getter for METERINGRECORDID, with configurable default |
ASK_METERINGRECORDID() |
Getter for METERINGRECORDID w/ exceptions if field has no va |
HAS_METERINGRECORDID() |
Determine if METERINGRECORDID has a value |
Status¶
The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage.CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas not honored. There are three causes for this result:
The customer identifier is invalid.
The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future
UsageRecordsfor this customer will fail until the customer subscribes to your product.The customer's Amazon Web Services account was suspended.
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad the same customer, dimension, and time, but a different quantity.
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 |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_USAGERECORDRESULTLIST¶
TYPES TT_USAGERECORDRESULTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_MPMUSAGERECORDRESULT WITH DEFAULT KEY
.