@Generated(value="software.amazon.awssdk:codegen") public class UsageRecord extends Object implements StructuredPojo, ToCopyableBuilder<UsageRecord.Builder,UsageRecord>
A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time.
Multiple requests with the same UsageRecords as input will be deduplicated to prevent double charges.
Modifier and Type | Class and Description |
---|---|
static interface |
UsageRecord.Builder |
Modifier and Type | Method and Description |
---|---|
static UsageRecord.Builder |
builder() |
String |
customerIdentifier()
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in
your application.
|
String |
dimension()
During the process of registering a product on AWS Marketplace, up to eight dimensions are specified.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
quantity()
The quantity of usage consumed by the customer for the given dimension and time.
|
static Class<? extends UsageRecord.Builder> |
serializableBuilderClass() |
Instant |
timestamp()
Timestamp of the hour, recorded in UTC.
|
UsageRecord.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Instant timestamp()
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
Your application can meter usage for up to one hour in the past.
Your application can meter usage for up to one hour in the past.
public String customerIdentifier()
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.
public String dimension()
During the process of registering a product on AWS Marketplace, up to eight dimensions are specified. These represent different units of value in your application.
public Integer quantity()
The quantity of usage consumed by the customer for the given dimension and time.
public UsageRecord.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UsageRecord.Builder,UsageRecord>
public static UsageRecord.Builder builder()
public static Class<? extends UsageRecord.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.