@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's measured for a budget.
Cost example: A Spend
for 3 USD
of costs has the following parameters:
An Amount
of 3
A Unit
of USD
Usage example: A Spend
for 3 GB
of S3 usage has 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's associated with a budget forecast, actual spend, or budget threshold.
|
String |
getUnit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmount(BigDecimal amount)
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
|
void |
setUnit(String unit)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
|
String |
toString()
Returns a string representation of this object.
|
Spend |
withAmount(BigDecimal amount)
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
|
Spend |
withUnit(String unit)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
|
public void setAmount(BigDecimal amount)
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
amount
- The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.public BigDecimal getAmount()
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
public Spend withAmount(BigDecimal amount)
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
amount
- The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.public void setUnit(String unit)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
unit
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.public String getUnit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
public Spend withUnit(String unit)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
unit
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.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.