@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageRecord extends Object implements Serializable, Cloneable, StructuredPojo
Provides quota and aggregated usage data for an account.
Constructor and Description |
---|
UsageRecord() |
Modifier and Type | Method and Description |
---|---|
UsageRecord |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The AWS account ID for the account that the data applies to.
|
Date |
getFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account.
|
List<UsageByAccount> |
getUsage()
An array of objects that contains usage data and quotas for the account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The AWS account ID for the account that the data applies to.
|
void |
setFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account.
|
void |
setUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account.
|
String |
toString()
Returns a string representation of this object.
|
UsageRecord |
withAccountId(String accountId)
The AWS account ID for the account that the data applies to.
|
UsageRecord |
withFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account.
|
UsageRecord |
withUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account.
|
UsageRecord |
withUsage(UsageByAccount... usage)
An array of objects that contains usage data and quotas for the account.
|
public void setAccountId(String accountId)
The AWS account ID for the account that the data applies to.
accountId
- The AWS account ID for the account that the data applies to.public String getAccountId()
The AWS account ID for the account that the data applies to.
public UsageRecord withAccountId(String accountId)
The AWS account ID for the account that the data applies to.
accountId
- The AWS account ID for the account that the data applies to.public void setFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account. This value is null if the account didn't participate in the free trial.
freeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the
account. This value is null if the account didn't participate in the free trial.public Date getFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account. This value is null if the account didn't participate in the free trial.
public UsageRecord withFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the account. This value is null if the account didn't participate in the free trial.
freeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the free trial period started for the
account. This value is null if the account didn't participate in the free trial.public List<UsageByAccount> getUsage()
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
public void setUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.public UsageRecord withUsage(UsageByAccount... usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
NOTE: This method appends the values to the existing list (if any). Use
setUsage(java.util.Collection)
or withUsage(java.util.Collection)
if you want to override the
existing values.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.public UsageRecord withUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.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.