public static interface UsageRecord.Builder extends SdkPojo, CopyableBuilder<UsageRecord.Builder,UsageRecord>
| Modifier and Type | Method and Description |
|---|---|
UsageRecord.Builder |
customerIdentifier(String customerIdentifier)
The
CustomerIdentifier is obtained through the ResolveCustomer operation and
represents an individual buyer in your application. |
UsageRecord.Builder |
dimension(String dimension)
During the process of registering a product on AWS Marketplace, dimensions are specified.
|
UsageRecord.Builder |
quantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time.
|
UsageRecord.Builder |
timestamp(Instant timestamp)
Timestamp, in UTC, for which the usage is being reported.
|
UsageRecord.Builder |
usageAllocations(Collection<UsageAllocation> usageAllocations)
The set of
UsageAllocations to submit. |
UsageRecord.Builder |
usageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations)
The set of
UsageAllocations to submit. |
UsageRecord.Builder |
usageAllocations(UsageAllocation... usageAllocations)
The set of
UsageAllocations to submit. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildUsageRecord.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.
UsageRecord.Builder customerIdentifier(String customerIdentifier)
The CustomerIdentifier is obtained through the ResolveCustomer operation and
represents an individual buyer in your application.
customerIdentifier - The CustomerIdentifier is obtained through the ResolveCustomer operation and
represents an individual buyer in your application.UsageRecord.Builder dimension(String dimension)
During the process of registering a product on AWS Marketplace, dimensions are specified. These represent different units of value in your application.
dimension - During the process of registering a product on AWS Marketplace, dimensions are specified. These
represent different units of value in your application.UsageRecord.Builder quantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time. Defaults to 0
if not specified.
quantity - The quantity of usage consumed by the customer for the given dimension and time. Defaults to
0 if not specified.UsageRecord.Builder usageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit. The sum of all UsageAllocation quantities
must equal the Quantity of the UsageRecord.
usageAllocations - The set of UsageAllocations to submit. The sum of all UsageAllocation
quantities must equal the Quantity of the UsageRecord.UsageRecord.Builder usageAllocations(UsageAllocation... usageAllocations)
The set of UsageAllocations to submit. The sum of all UsageAllocation quantities
must equal the Quantity of the UsageRecord.
usageAllocations - The set of UsageAllocations to submit. The sum of all UsageAllocation
quantities must equal the Quantity of the UsageRecord.UsageRecord.Builder usageAllocations(Consumer<UsageAllocation.Builder>... usageAllocations)
The set of UsageAllocations to submit. The sum of all UsageAllocation quantities
must equal the Quantity of the UsageRecord.
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) Copyright © 2023. All rights reserved.