Interface CostDifference.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CostDifference.Builder,,CostDifference> SdkBuilder<CostDifference.Builder,,CostDifference> SdkPojo
- Enclosing class:
CostDifference
@Mutable
@NotThreadSafe
public static interface CostDifference.Builder
extends SdkPojo, CopyableBuilder<CostDifference.Builder,CostDifference>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CostDifference.BuilderestimatedCost(Consumer<CostAmount.Builder> estimatedCost) The estimated cost amount.estimatedCost(CostAmount estimatedCost) The estimated cost amount.default CostDifference.BuilderhistoricalCost(Consumer<CostAmount.Builder> historicalCost) The historical cost amount.historicalCost(CostAmount historicalCost) The historical cost amount.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
-
historicalCost
The historical cost amount.
- Parameters:
historicalCost- The historical cost amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
historicalCost
The historical cost amount.
This is a convenience method that creates an instance of theCostAmount.Builderavoiding the need to create one manually viaCostAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohistoricalCost(CostAmount).- Parameters:
historicalCost- a consumer that will call methods onCostAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
estimatedCost
The estimated cost amount.
- Parameters:
estimatedCost- The estimated cost amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedCost
The estimated cost amount.
This is a convenience method that creates an instance of theCostAmount.Builderavoiding the need to create one manually viaCostAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toestimatedCost(CostAmount).- Parameters:
estimatedCost- a consumer that will call methods onCostAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-