Interface UsageRecordResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UsageRecordResult.Builder,
,UsageRecordResult> SdkBuilder<UsageRecordResult.Builder,
,UsageRecordResult> SdkPojo
- Enclosing class:
UsageRecordResult
-
Method Summary
Modifier and TypeMethodDescriptionmeteringRecordId
(String meteringRecordId) TheMeteringRecordId
is a unique identifier for this metering event.TheUsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.status
(UsageRecordResultStatus status) TheUsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.default UsageRecordResult.Builder
usageRecord
(Consumer<UsageRecord.Builder> usageRecord) TheUsageRecord
that was part of theBatchMeterUsage
request.usageRecord
(UsageRecord usageRecord) TheUsageRecord
that was part of theBatchMeterUsage
request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
usageRecord
The
UsageRecord
that was part of theBatchMeterUsage
request.- Parameters:
usageRecord
- TheUsageRecord
that was part of theBatchMeterUsage
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageRecord
The
This is a convenience method that creates an instance of theUsageRecord
that was part of theBatchMeterUsage
request.UsageRecord.Builder
avoiding the need to create one manually viaUsageRecord.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousageRecord(UsageRecord)
.- Parameters:
usageRecord
- a consumer that will call methods onUsageRecord.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
meteringRecordId
The
MeteringRecordId
is a unique identifier for this metering event.- Parameters:
meteringRecordId
- TheMeteringRecordId
is a unique identifier for this metering event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The
UsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.-
Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. -
CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was 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
UsageRecords
for this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
- Parameters:
status
- TheUsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.-
Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. -
CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was 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
UsageRecords
for this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The
UsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.-
Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. -
CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was 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
UsageRecords
for this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
- Parameters:
status
- TheUsageRecordResult
Status
indicates the status of an individualUsageRecord
processed byBatchMeterUsage
.-
Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. -
CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was 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
UsageRecords
for this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-