Interface MeterUsageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<MeterUsageRequest.Builder,,MeterUsageRequest> MarketplaceMeteringRequest.Builder,SdkBuilder<MeterUsageRequest.Builder,,MeterUsageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
MeterUsageRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the permissions required for the action, but does not make the request.overrideConfiguration(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 AWS Marketplace.Timestamp, in UTC, for which the usage is being reported.usageAllocations(Collection<UsageAllocation> usageAllocations) The set ofUsageAllocationsto submit.usageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations) The set ofUsageAllocationsto submit.usageAllocations(UsageAllocation... usageAllocations) The set ofUsageAllocationsto submit.usageDimension(String usageDimension) It will be one of the fcp dimension name provided during the publishing of the product.usageQuantity(Integer usageQuantity) Consumption value for the hour.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, sdkFields
-
Method Details
-
productCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
- Parameters:
productCode- Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the
timestampvalue is not before the start of the software usage.- Parameters:
timestamp- Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure thetimestampvalue is not before the start of the software usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageDimension
It will be one of the fcp dimension name provided during the publishing of the product.
- Parameters:
usageDimension- It will be one of the fcp dimension name provided during the publishing of the product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageQuantity
Consumption value for the hour. Defaults to
0if not specified.- Parameters:
usageQuantity- Consumption value for the hour. Defaults to0if not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns
DryRunOperation; otherwise, it returnsUnauthorizedException. Defaults tofalseif not specified.- Parameters:
dryRun- Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returnsDryRunOperation; otherwise, it returnsUnauthorizedException. Defaults tofalseif not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAllocations
The set of
UsageAllocationsto submit.The sum of all
UsageAllocationquantities must equal theUsageQuantityof theMeterUsagerequest, and eachUsageAllocationmust have a unique set of tags (include no tags).- Parameters:
usageAllocations- The set ofUsageAllocationsto submit.The sum of all
UsageAllocationquantities must equal theUsageQuantityof theMeterUsagerequest, and eachUsageAllocationmust have a unique set of tags (include no tags).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAllocations
The set of
UsageAllocationsto submit.The sum of all
UsageAllocationquantities must equal theUsageQuantityof theMeterUsagerequest, and eachUsageAllocationmust have a unique set of tags (include no tags).- Parameters:
usageAllocations- The set ofUsageAllocationsto submit.The sum of all
UsageAllocationquantities must equal theUsageQuantityof theMeterUsagerequest, and eachUsageAllocationmust have a unique set of tags (include no tags).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAllocations
The set of
UsageAllocationsto submit.The sum of all
This is a convenience method that creates an instance of theUsageAllocationquantities must equal theUsageQuantityof theMeterUsagerequest, and eachUsageAllocationmust have a unique set of tags (include no tags).UsageAllocation.Builderavoiding the need to create one manually viaUsageAllocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousageAllocations(List<UsageAllocation>).- Parameters:
usageAllocations- a consumer that will call methods onUsageAllocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
MeterUsageRequest.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
MeterUsageRequest.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.
-