public static interface MeterUsageRequest.Builder extends MarketplaceMeteringRequest.Builder, SdkPojo, CopyableBuilder<MeterUsageRequest.Builder,MeterUsageRequest>
| Modifier and Type | Method and Description |
|---|---|
MeterUsageRequest.Builder |
dryRun(Boolean dryRun)
Checks whether you have the permissions required for the action, but does not make the request.
|
MeterUsageRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
MeterUsageRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
MeterUsageRequest.Builder |
productCode(String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.
|
MeterUsageRequest.Builder |
timestamp(Instant timestamp)
Timestamp, in UTC, for which the usage is being reported.
|
MeterUsageRequest.Builder |
usageAllocations(Collection<UsageAllocation> usageAllocations)
The set of
UsageAllocations to submit. |
MeterUsageRequest.Builder |
usageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations)
The set of
UsageAllocations to submit. |
MeterUsageRequest.Builder |
usageAllocations(UsageAllocation... usageAllocations)
The set of
UsageAllocations to submit. |
MeterUsageRequest.Builder |
usageDimension(String usageDimension)
It will be one of the fcp dimension name provided during the publishing of the product.
|
MeterUsageRequest.Builder |
usageQuantity(Integer usageQuantity)
Consumption value for the hour.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildMeterUsageRequest.Builder productCode(String 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.
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.MeterUsageRequest.Builder timestamp(Instant 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.
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.MeterUsageRequest.Builder usageDimension(String usageDimension)
It will be one of the fcp dimension name provided during the publishing of the product.
usageDimension - It will be one of the fcp dimension name provided during the publishing of the product.MeterUsageRequest.Builder usageQuantity(Integer usageQuantity)
Consumption value for the hour. Defaults to 0 if not specified.
usageQuantity - Consumption value for the hour. Defaults to 0 if not specified.MeterUsageRequest.Builder dryRun(Boolean 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 returns
UnauthorizedException. Defaults to false if not specified.
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 returns
UnauthorizedException. Defaults to false if not specified.MeterUsageRequest.Builder usageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the
MeterUsage request, and each UsageAllocation must have a unique set of tags
(include no tags).
usageAllocations - The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of
the MeterUsage request, and each UsageAllocation must have a unique set of
tags (include no tags).
MeterUsageRequest.Builder usageAllocations(UsageAllocation... usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the
MeterUsage request, and each UsageAllocation must have a unique set of tags
(include no tags).
usageAllocations - The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of
the MeterUsage request, and each UsageAllocation must have a unique set of
tags (include no tags).
MeterUsageRequest.Builder usageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the
MeterUsage request, and each UsageAllocation must have a unique set of tags
(include no tags).
UsageAllocation.Builder avoiding the need
to create one manually via
UsageAllocation.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #usageAllocations(List.
usageAllocations - a consumer that will call methods on
UsageAllocation.Builder#usageAllocations(java.util.Collection) MeterUsageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderMeterUsageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.