Class Spend
- java.lang.Object
-
- software.amazon.awssdk.services.budgets.model.Spend
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Spend.Builder,Spend>
@Generated("software.amazon.awssdk:codegen") public final class Spend extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Spend.Builder,Spend>
The amount of cost or usage that's measured for a budget.
Cost example: A
Spendfor3 USDof costs has the following parameters:-
An
Amountof3 -
A
UnitofUSD
Usage example: A
Spendfor3 GBof S3 usage has the following parameters:-
An
Amountof3 -
A
UnitofGB
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSpend.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalamount()The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.static Spend.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Spend.Builder>serializableBuilderClass()Spend.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
amount
public final BigDecimal amount()
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
- Returns:
- The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
-
unit
public final String unit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
- Returns:
- The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
-
toBuilder
public Spend.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Spend.Builder,Spend>
-
builder
public static Spend.Builder builder()
-
serializableBuilderClass
public static Class<? extends Spend.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-