@Generated(value="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 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
| Modifier and Type | Class and Description |
|---|---|
static interface |
Spend.Builder |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
amount()
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
|
static Spend.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Spend.Builder> |
serializableBuilderClass() |
Spend.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BigDecimal amount()
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
public final String unit()
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold.
public Spend.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Spend.Builder,Spend>public static Spend.Builder builder()
public static Class<? extends Spend.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.