Interface ComputeSavingsPlans.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ComputeSavingsPlans.Builder,,ComputeSavingsPlans> SdkBuilder<ComputeSavingsPlans.Builder,,ComputeSavingsPlans> SdkPojo
- Enclosing class:
ComputeSavingsPlans
public static interface ComputeSavingsPlans.Builder
extends SdkPojo, CopyableBuilder<ComputeSavingsPlans.Builder,ComputeSavingsPlans>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComputeSavingsPlans.Builderconfiguration(Consumer<ComputeSavingsPlansConfiguration.Builder> configuration) Configuration details of the Compute Savings Plans to purchase.configuration(ComputeSavingsPlansConfiguration configuration) Configuration details of the Compute Savings Plans to purchase.default ComputeSavingsPlans.BuildercostCalculation(Consumer<SavingsPlansCostCalculation.Builder> costCalculation) Cost impact of the Savings Plans purchase recommendation.costCalculation(SavingsPlansCostCalculation costCalculation) Cost impact of the Savings Plans purchase recommendation.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
-
configuration
Configuration details of the Compute Savings Plans to purchase.
- Parameters:
configuration- Configuration details of the Compute Savings Plans to purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default ComputeSavingsPlans.Builder configuration(Consumer<ComputeSavingsPlansConfiguration.Builder> configuration) Configuration details of the Compute Savings Plans to purchase.
This is a convenience method that creates an instance of theComputeSavingsPlansConfiguration.Builderavoiding the need to create one manually viaComputeSavingsPlansConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(ComputeSavingsPlansConfiguration).- Parameters:
configuration- a consumer that will call methods onComputeSavingsPlansConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costCalculation
Cost impact of the Savings Plans purchase recommendation.
- Parameters:
costCalculation- Cost impact of the Savings Plans purchase recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costCalculation
default ComputeSavingsPlans.Builder costCalculation(Consumer<SavingsPlansCostCalculation.Builder> costCalculation) Cost impact of the Savings Plans purchase recommendation.
This is a convenience method that creates an instance of theSavingsPlansCostCalculation.Builderavoiding the need to create one manually viaSavingsPlansCostCalculation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocostCalculation(SavingsPlansCostCalculation).- Parameters:
costCalculation- a consumer that will call methods onSavingsPlansCostCalculation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-