@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageAllocation extends Object implements Serializable, Cloneable, StructuredPojo
Usage allocations allow you to split usage into buckets by tags.
Each UsageAllocation
indicates the usage quantity for a specific set of tags.
Constructor and Description |
---|
UsageAllocation() |
Modifier and Type | Method and Description |
---|---|
UsageAllocation |
clone() |
boolean |
equals(Object obj) |
Integer |
getAllocatedUsageQuantity()
The total quantity allocated to this bucket of usage.
|
List<Tag> |
getTags()
The set of tags that define the bucket of usage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllocatedUsageQuantity(Integer allocatedUsageQuantity)
The total quantity allocated to this bucket of usage.
|
void |
setTags(Collection<Tag> tags)
The set of tags that define the bucket of usage.
|
String |
toString()
Returns a string representation of this object.
|
UsageAllocation |
withAllocatedUsageQuantity(Integer allocatedUsageQuantity)
The total quantity allocated to this bucket of usage.
|
UsageAllocation |
withTags(Collection<Tag> tags)
The set of tags that define the bucket of usage.
|
UsageAllocation |
withTags(Tag... tags)
The set of tags that define the bucket of usage.
|
public void setAllocatedUsageQuantity(Integer allocatedUsageQuantity)
The total quantity allocated to this bucket of usage.
allocatedUsageQuantity
- The total quantity allocated to this bucket of usage.public Integer getAllocatedUsageQuantity()
The total quantity allocated to this bucket of usage.
public UsageAllocation withAllocatedUsageQuantity(Integer allocatedUsageQuantity)
The total quantity allocated to this bucket of usage.
allocatedUsageQuantity
- The total quantity allocated to this bucket of usage.public List<Tag> getTags()
The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
public void setTags(Collection<Tag> tags)
The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
tags
- The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can
be left out.public UsageAllocation withTags(Tag... tags)
The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can
be left out.public UsageAllocation withTags(Collection<Tag> tags)
The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
tags
- The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can
be left out.public String toString()
toString
in class Object
Object.toString()
public UsageAllocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.