Interface BatchMeterUsageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchMeterUsageResponse.Builder,
,BatchMeterUsageResponse> MarketplaceMeteringResponse.Builder
,SdkBuilder<BatchMeterUsageResponse.Builder,
,BatchMeterUsageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchMeterUsageResponse
-
Method Summary
Modifier and TypeMethodDescriptionresults
(Collection<UsageRecordResult> results) Contains allUsageRecords
processed byBatchMeterUsage
.results
(Consumer<UsageRecordResult.Builder>... results) Contains allUsageRecords
processed byBatchMeterUsage
.results
(UsageRecordResult... results) Contains allUsageRecords
processed byBatchMeterUsage
.unprocessedRecords
(Collection<UsageRecord> unprocessedRecords) Contains allUsageRecords
that were not processed byBatchMeterUsage
.unprocessedRecords
(Consumer<UsageRecord.Builder>... unprocessedRecords) Contains allUsageRecords
that were not processed byBatchMeterUsage
.unprocessedRecords
(UsageRecord... unprocessedRecords) Contains allUsageRecords
that were not processed byBatchMeterUsage
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.marketplacemetering.model.MarketplaceMeteringResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
results
Contains all
UsageRecords
processed byBatchMeterUsage
. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.- Parameters:
results
- Contains allUsageRecords
processed byBatchMeterUsage
. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
Contains all
UsageRecords
processed byBatchMeterUsage
. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.- Parameters:
results
- Contains allUsageRecords
processed byBatchMeterUsage
. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
Contains all
This is a convenience method that creates an instance of theUsageRecords
processed byBatchMeterUsage
. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.UsageRecordResult.Builder
avoiding the need to create one manually viaUsageRecordResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresults(List<UsageRecordResult>)
.- Parameters:
results
- a consumer that will call methods onUsageRecordResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unprocessedRecords
Contains all
UsageRecords
that were not processed byBatchMeterUsage
. This is a list ofUsageRecords
. You can retry the failed request by making anotherBatchMeterUsage
call with this list as input in theBatchMeterUsageRequest
.- Parameters:
unprocessedRecords
- Contains allUsageRecords
that were not processed byBatchMeterUsage
. This is a list ofUsageRecords
. You can retry the failed request by making anotherBatchMeterUsage
call with this list as input in theBatchMeterUsageRequest
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unprocessedRecords
Contains all
UsageRecords
that were not processed byBatchMeterUsage
. This is a list ofUsageRecords
. You can retry the failed request by making anotherBatchMeterUsage
call with this list as input in theBatchMeterUsageRequest
.- Parameters:
unprocessedRecords
- Contains allUsageRecords
that were not processed byBatchMeterUsage
. This is a list ofUsageRecords
. You can retry the failed request by making anotherBatchMeterUsage
call with this list as input in theBatchMeterUsageRequest
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unprocessedRecords
BatchMeterUsageResponse.Builder unprocessedRecords(Consumer<UsageRecord.Builder>... unprocessedRecords) Contains all
This is a convenience method that creates an instance of theUsageRecords
that were not processed byBatchMeterUsage
. This is a list ofUsageRecords
. You can retry the failed request by making anotherBatchMeterUsage
call with this list as input in theBatchMeterUsageRequest
.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 tounprocessedRecords(List<UsageRecord>)
.- Parameters:
unprocessedRecords
- 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:
-