@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.
For 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, such as USD or
GBP.
|
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, such as USD or
GBP.
|
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, such as USD or
GBP.
|
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, such as USD or GBP.
unit
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as
USD or GBP.public String getUnit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.
public Spend withUnit(String unit)
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.
unit
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as
USD or GBP.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.