@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageRecord extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
UsageRecord() |
Modifier and Type | Method and Description |
---|---|
UsageRecord |
clone() |
boolean |
equals(Object obj) |
String |
getCustomerIdentifier()
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in
your application.
|
String |
getDimension()
During the process of registering a product on AWS Marketplace, up to eight dimensions are specified.
|
Integer |
getQuantity()
The quantity of usage consumed by the customer for the given dimension and time.
|
Date |
getTimestamp()
Timestamp of the hour, recorded in UTC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomerIdentifier(String customerIdentifier)
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in
your application.
|
void |
setDimension(String dimension)
During the process of registering a product on AWS Marketplace, up to eight dimensions are specified.
|
void |
setQuantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time.
|
void |
setTimestamp(Date timestamp)
Timestamp of the hour, recorded in UTC.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UsageRecord |
withCustomerIdentifier(String customerIdentifier)
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in
your application.
|
UsageRecord |
withDimension(String dimension)
During the process of registering a product on AWS Marketplace, up to eight dimensions are specified.
|
UsageRecord |
withQuantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time.
|
UsageRecord |
withTimestamp(Date timestamp)
Timestamp of the hour, recorded in UTC.
|
public void setTimestamp(Date 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.
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.
public Date getTimestamp()
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 UsageRecord withTimestamp(Date 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.
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.
public void setCustomerIdentifier(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.public String getCustomerIdentifier()
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.
public UsageRecord withCustomerIdentifier(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.public void setDimension(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.
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 String getDimension()
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 UsageRecord withDimension(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.
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 void setQuantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time.
quantity
- The quantity of usage consumed by the customer for the given dimension and time.public Integer getQuantity()
The quantity of usage consumed by the customer for the given dimension and time.
public UsageRecord withQuantity(Integer quantity)
The quantity of usage consumed by the customer for the given dimension and time.
quantity
- The quantity of usage consumed by the customer for the given dimension and time.public String toString()
toString
in class Object
Object.toString()
public UsageRecord clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.