Interface MeterUsageRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<MeterUsageRequest.Builder,MeterUsageRequest>,MarketplaceMeteringRequest.Builder,SdkBuilder<MeterUsageRequest.Builder,MeterUsageRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- MeterUsageRequest
public static interface MeterUsageRequest.Builder extends MarketplaceMeteringRequest.Builder, SdkPojo, CopyableBuilder<MeterUsageRequest.Builder,MeterUsageRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MeterUsageRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the permissions required for the action, but does not make the request.MeterUsageRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)MeterUsageRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)MeterUsageRequest.BuilderproductCode(String productCode)Product code is used to uniquely identify a product in AWS Marketplace.MeterUsageRequest.Buildertimestamp(Instant timestamp)Timestamp, in UTC, for which the usage is being reported.MeterUsageRequest.BuilderusageAllocations(Collection<UsageAllocation> usageAllocations)The set ofUsageAllocationsto submit.MeterUsageRequest.BuilderusageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations)The set ofUsageAllocationsto submit.MeterUsageRequest.BuilderusageAllocations(UsageAllocation... usageAllocations)The set ofUsageAllocationsto submit.MeterUsageRequest.BuilderusageDimension(String usageDimension)It will be one of the fcp dimension name provided during the publishing of the product.MeterUsageRequest.BuilderusageQuantity(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 Detail
-
productCode
MeterUsageRequest.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.
- 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
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
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
MeterUsageRequest.Builder usageDimension(String 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
MeterUsageRequest.Builder usageQuantity(Integer 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
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 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
MeterUsageRequest.Builder usageAllocations(Collection<UsageAllocation> 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
MeterUsageRequest.Builder usageAllocations(UsageAllocation... 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
MeterUsageRequest.Builder usageAllocations(Consumer<UsageAllocation.Builder>... 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 to#usageAllocations(List.) - 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:
#usageAllocations(java.util.Collection)
-
overrideConfiguration
MeterUsageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
MeterUsageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-