@Generated(value="software.amazon.awssdk:codegen") public final class UsageRecord extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageRecord.Builder,UsageRecord>
Provides quota and aggregated usage data for an account.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UsageRecord.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The unique identifier for the AWS account that the data applies to.
|
static UsageRecord.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
freeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial started for the account.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasUsage()
Returns true if the Usage property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UsageRecord.Builder> |
serializableBuilderClass() |
UsageRecord.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<UsageByAccount> |
usage()
An array of objects that contains usage data and quotas for the account.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String accountId()
The unique identifier for the AWS account that the data applies to.
public Instant freeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial started for the account.
public boolean hasUsage()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUsage() to see if a value was sent in this field.
public UsageRecord.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UsageRecord.Builder,UsageRecord>public static UsageRecord.Builder builder()
public static Class<? extends UsageRecord.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.