Interface Ec2InstanceSavingsPlans.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2InstanceSavingsPlans.Builder,,Ec2InstanceSavingsPlans> SdkBuilder<Ec2InstanceSavingsPlans.Builder,,Ec2InstanceSavingsPlans> SdkPojo
- Enclosing class:
Ec2InstanceSavingsPlans
public static interface Ec2InstanceSavingsPlans.Builder
extends SdkPojo, CopyableBuilder<Ec2InstanceSavingsPlans.Builder,Ec2InstanceSavingsPlans>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ec2InstanceSavingsPlans.Builderconfiguration(Consumer<Ec2InstanceSavingsPlansConfiguration.Builder> configuration) The EC2 instance Savings Plans configuration used for recommendations.configuration(Ec2InstanceSavingsPlansConfiguration configuration) The EC2 instance Savings Plans configuration used for recommendations.default Ec2InstanceSavingsPlans.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
The EC2 instance Savings Plans configuration used for recommendations.
- Parameters:
configuration- The EC2 instance Savings Plans configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default Ec2InstanceSavingsPlans.Builder configuration(Consumer<Ec2InstanceSavingsPlansConfiguration.Builder> configuration) The EC2 instance Savings Plans configuration used for recommendations.
This is a convenience method that creates an instance of theEc2InstanceSavingsPlansConfiguration.Builderavoiding the need to create one manually viaEc2InstanceSavingsPlansConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(Ec2InstanceSavingsPlansConfiguration).- Parameters:
configuration- a consumer that will call methods onEc2InstanceSavingsPlansConfiguration.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 Ec2InstanceSavingsPlans.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:
-