@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageTotal extends Object implements Serializable, Cloneable, StructuredPojo
The total of usage for an account ID.
Constructor and Description |
---|
UsageTotal() |
Modifier and Type | Method and Description |
---|---|
UsageTotal |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The account ID of the account that usage data was retrieved for.
|
List<Usage> |
getUsage()
An object representing the total usage for an account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The account ID of the account that usage data was retrieved for.
|
void |
setUsage(Collection<Usage> usage)
An object representing the total usage for an account.
|
String |
toString()
Returns a string representation of this object.
|
UsageTotal |
withAccountId(String accountId)
The account ID of the account that usage data was retrieved for.
|
UsageTotal |
withUsage(Collection<Usage> usage)
An object representing the total usage for an account.
|
UsageTotal |
withUsage(Usage... usage)
An object representing the total usage for an account.
|
public void setAccountId(String accountId)
The account ID of the account that usage data was retrieved for.
accountId
- The account ID of the account that usage data was retrieved for.public String getAccountId()
The account ID of the account that usage data was retrieved for.
public UsageTotal withAccountId(String accountId)
The account ID of the account that usage data was retrieved for.
accountId
- The account ID of the account that usage data was retrieved for.public List<Usage> getUsage()
An object representing the total usage for an account.
public void setUsage(Collection<Usage> usage)
An object representing the total usage for an account.
usage
- An object representing the total usage for an account.public UsageTotal withUsage(Usage... usage)
An object representing the total usage for an account.
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 object representing the total usage for an account.public UsageTotal withUsage(Collection<Usage> usage)
An object representing the total usage for an account.
usage
- An object representing the total usage for an account.public String toString()
toString
in class Object
Object.toString()
public UsageTotal clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.