Interface CalculatedSpend.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CalculatedSpend.Builder,,CalculatedSpend> SdkBuilder<CalculatedSpend.Builder,,CalculatedSpend> SdkPojo
- Enclosing class:
CalculatedSpend
@Mutable
@NotThreadSafe
public static interface CalculatedSpend.Builder
extends SdkPojo, CopyableBuilder<CalculatedSpend.Builder,CalculatedSpend>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CalculatedSpend.BuilderactualSpend(Consumer<Spend.Builder> actualSpend) The amount of cost, usage, RI units, or Savings Plans units that you used.actualSpend(Spend actualSpend) The amount of cost, usage, RI units, or Savings Plans units that you used.default CalculatedSpend.BuilderforecastedSpend(Consumer<Spend.Builder> forecastedSpend) The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.forecastedSpend(Spend forecastedSpend) The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
actualSpend
The amount of cost, usage, RI units, or Savings Plans units that you used.
- Parameters:
actualSpend- The amount of cost, usage, RI units, or Savings Plans units that you used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actualSpend
The amount of cost, usage, RI units, or Savings Plans units that you used.
This is a convenience method that creates an instance of theSpend.Builderavoiding the need to create one manually viaSpend.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactualSpend(Spend).- Parameters:
actualSpend- a consumer that will call methods onSpend.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
forecastedSpend
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
- Parameters:
forecastedSpend- The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastedSpend
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
This is a convenience method that creates an instance of theSpend.Builderavoiding the need to create one manually viaSpend.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforecastedSpend(Spend).- Parameters:
forecastedSpend- a consumer that will call methods onSpend.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-