@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Spend extends Object implements Serializable, Cloneable, StructuredPojo
The amount of cost or usage that is measured for a budget.
For example, a Spend
for 3 GB
of S3 usage would have the following parameters:
An Amount
of 3
A unit
of GB
Constructor and Description |
---|
Spend() |
Modifier and Type | Method and Description |
---|---|
Spend |
clone() |
boolean |
equals(Object obj) |
BigDecimal |
getAmount()
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
|
String |
getUnit()
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars
or GB.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmount(BigDecimal amount)
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
|
void |
setUnit(String unit)
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars
or GB.
|
String |
toString()
Returns a string representation of this object.
|
Spend |
withAmount(BigDecimal amount)
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
|
Spend |
withUnit(String unit)
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars
or GB.
|
public void setAmount(BigDecimal amount)
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
amount
- The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.public BigDecimal getAmount()
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
public Spend withAmount(BigDecimal amount)
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
amount
- The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.public void setUnit(String unit)
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
unit
- The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as
dollars or GB.public String getUnit()
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
public Spend withUnit(String unit)
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
unit
- The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as
dollars or GB.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.