Interface BatchMeterUsageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<BatchMeterUsageRequest.Builder,,BatchMeterUsageRequest> MarketplaceMeteringRequest.Builder,SdkBuilder<BatchMeterUsageRequest.Builder,,BatchMeterUsageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
BatchMeterUsageRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.productCode(String productCode) Product code is used to uniquely identify a product in Amazon Web Services Marketplace.usageRecords(Collection<UsageRecord> usageRecords) The set ofUsageRecordsto submit.usageRecords(Consumer<UsageRecord.Builder>... usageRecords) The set ofUsageRecordsto submit.usageRecords(UsageRecord... usageRecords) The set ofUsageRecordsto submit.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.marketplacemetering.model.MarketplaceMeteringRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
usageRecords
The set of
UsageRecordsto submit.BatchMeterUsageaccepts up to 25UsageRecordsat a time.- Parameters:
usageRecords- The set ofUsageRecordsto submit.BatchMeterUsageaccepts up to 25UsageRecordsat a time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageRecords
The set of
UsageRecordsto submit.BatchMeterUsageaccepts up to 25UsageRecordsat a time.- Parameters:
usageRecords- The set ofUsageRecordsto submit.BatchMeterUsageaccepts up to 25UsageRecordsat a time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageRecords
The set of
This is a convenience method that creates an instance of theUsageRecordsto submit.BatchMeterUsageaccepts up to 25UsageRecordsat a time.UsageRecord.Builderavoiding the need to create one manually viaUsageRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousageRecords(List<UsageRecord>).- Parameters:
usageRecords- 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:
-
productCode
Product code is used to uniquely identify a product in Amazon Web Services Marketplace. The product code should be the same as the one used during the publishing of a new product.
ProductCodeis required only for legacy integrations that useCustomerIdentifier. For new integrations usingLicenseArn(Concurrent Agreements), do NOT includeProductCodeat the request level. TheLicenseArnin eachUsageRecordidentifies both the product and the specific agreement.Sending metering records with both
ProductCodeandLicenseArnfor the same customer within the same hour will result in duplicate billing. If you are migrating from product-based metering to license-based metering, stop sendingProductCodebefore you start sendingLicenseArn.- Parameters:
productCode- Product code is used to uniquely identify a product in Amazon Web Services Marketplace. The product code should be the same as the one used during the publishing of a new product.ProductCodeis required only for legacy integrations that useCustomerIdentifier. For new integrations usingLicenseArn(Concurrent Agreements), do NOT includeProductCodeat the request level. TheLicenseArnin eachUsageRecordidentifies both the product and the specific agreement.Sending metering records with both
ProductCodeandLicenseArnfor the same customer within the same hour will result in duplicate billing. If you are migrating from product-based metering to license-based metering, stop sendingProductCodebefore you start sendingLicenseArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
BatchMeterUsageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
BatchMeterUsageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-