Interface CostDifference.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CostDifference.Builder,CostDifference>,SdkBuilder<CostDifference.Builder,CostDifference>,SdkPojo
- Enclosing class:
- CostDifference
public static interface CostDifference.Builder extends SdkPojo, CopyableBuilder<CostDifference.Builder,CostDifference>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CostDifference.BuilderestimatedCost(Consumer<CostAmount.Builder> estimatedCost)The estimated cost amount.CostDifference.BuilderestimatedCost(CostAmount estimatedCost)The estimated cost amount.default CostDifference.BuilderhistoricalCost(Consumer<CostAmount.Builder> historicalCost)The historical cost amount.CostDifference.BuilderhistoricalCost(CostAmount historicalCost)The historical cost amount.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
historicalCost
CostDifference.Builder historicalCost(CostAmount 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
default CostDifference.Builder historicalCost(Consumer<CostAmount.Builder> 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:
historicalCost(CostAmount)
-
estimatedCost
CostDifference.Builder estimatedCost(CostAmount 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
default CostDifference.Builder estimatedCost(Consumer<CostAmount.Builder> 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:
estimatedCost(CostAmount)
-
-