Interface UsageRecord.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UsageRecord.Builder,
,UsageRecord> SdkBuilder<UsageRecord.Builder,
,UsageRecord> SdkPojo
- Enclosing class:
UsageRecord
-
Method Summary
Modifier and TypeMethodDescriptioncustomerIdentifier
(String customerIdentifier) TheCustomerIdentifier
is obtained through theResolveCustomer
operation and represents an individual buyer in your application.During the process of registering a product on AWS Marketplace, dimensions are specified.The quantity of usage consumed by the customer for the given dimension and time.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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
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 the
timestamp
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.
-
customerIdentifier
The
CustomerIdentifier
is obtained through theResolveCustomer
operation and represents an individual buyer in your application.- Parameters:
customerIdentifier
- TheCustomerIdentifier
is obtained through theResolveCustomer
operation and represents an individual buyer in your application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimension
During the process of registering a product on AWS Marketplace, dimensions are specified. These represent different units of value in your application.
- Parameters:
dimension
- During the process of registering a product on AWS Marketplace, dimensions are specified. These represent different units of value in your application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantity
The quantity of usage consumed by the customer for the given dimension and time. Defaults to
0
if not specified.- Parameters:
quantity
- The quantity of usage consumed by the customer for the given dimension and time. Defaults to0
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 allUsageAllocation
quantities must equal the Quantity of theUsageRecord
.- Parameters:
usageAllocations
- The set ofUsageAllocations
to submit. The sum of allUsageAllocation
quantities must equal the Quantity of theUsageRecord
.- 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 allUsageAllocation
quantities must equal the Quantity of theUsageRecord
.- Parameters:
usageAllocations
- The set ofUsageAllocations
to submit. The sum of allUsageAllocation
quantities must equal the Quantity of theUsageRecord
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAllocations
The set of
This is a convenience method that creates an instance of theUsageAllocations
to submit. The sum of allUsageAllocation
quantities must equal the Quantity of theUsageRecord
.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:
-