@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageResourceResult extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on the sum of usage based on an Amazon Web Services resource.
Constructor and Description |
---|
UsageResourceResult() |
Modifier and Type | Method and Description |
---|---|
UsageResourceResult |
clone() |
boolean |
equals(Object obj) |
String |
getResource()
The Amazon Web Services resource that generated usage.
|
Total |
getTotal()
Represents the sum total of usage for the specified resource type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResource(String resource)
The Amazon Web Services resource that generated usage.
|
void |
setTotal(Total total)
Represents the sum total of usage for the specified resource type.
|
String |
toString()
Returns a string representation of this object.
|
UsageResourceResult |
withResource(String resource)
The Amazon Web Services resource that generated usage.
|
UsageResourceResult |
withTotal(Total total)
Represents the sum total of usage for the specified resource type.
|
public void setResource(String resource)
The Amazon Web Services resource that generated usage.
resource
- The Amazon Web Services resource that generated usage.public String getResource()
The Amazon Web Services resource that generated usage.
public UsageResourceResult withResource(String resource)
The Amazon Web Services resource that generated usage.
resource
- The Amazon Web Services resource that generated usage.public void setTotal(Total total)
Represents the sum total of usage for the specified resource type.
total
- Represents the sum total of usage for the specified resource type.public Total getTotal()
Represents the sum total of usage for the specified resource type.
public UsageResourceResult withTotal(Total total)
Represents the sum total of usage for the specified resource type.
total
- Represents the sum total of usage for the specified resource type.public String toString()
toString
in class Object
Object.toString()
public UsageResourceResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.