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 ofUsageAllocations
to submit.usageAllocations
(Consumer<UsageAllocation.Builder>... usageAllocations) The set ofUsageAllocations
to submit.usageAllocations
(UsageAllocation... usageAllocations) The set ofUsageAllocations
to 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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.marketplacemetering.model.MarketplaceMeteringRequest.Builder
build
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
-
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
timestamp
value 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 thetimestamp
value 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
0
if not specified.- Parameters:
usageQuantity
- Consumption value for the hour. Defaults to0
if 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 tofalse
if 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 tofalse
if not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAllocations
The set of
UsageAllocations
to submit.The sum of all
UsageAllocation
quantities must equal theUsageQuantity
of theMeterUsage
request, and eachUsageAllocation
must have a unique set of tags (include no tags).- Parameters:
usageAllocations
- The set ofUsageAllocations
to submit.The sum of all
UsageAllocation
quantities must equal theUsageQuantity
of theMeterUsage
request, and eachUsageAllocation
must 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
UsageAllocations
to submit.The sum of all
UsageAllocation
quantities must equal theUsageQuantity
of theMeterUsage
request, and eachUsageAllocation
must have a unique set of tags (include no tags).- Parameters:
usageAllocations
- The set ofUsageAllocations
to submit.The sum of all
UsageAllocation
quantities must equal theUsageQuantity
of theMeterUsage
request, and eachUsageAllocation
must 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
UsageAllocations
to submit.The sum of all
This is a convenience method that creates an instance of theUsageAllocation
quantities must equal theUsageQuantity
of theMeterUsage
request, and eachUsageAllocation
must have a unique set of tags (include no tags).UsageAllocation.Builder
avoiding the need to create one manually viaUsageAllocation.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-