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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Ec2InstanceSavingsPlans.Builderconfiguration(Consumer<Ec2InstanceSavingsPlansConfiguration.Builder> configuration)The EC2 instance Savings Plans configuration used for recommendations.Ec2InstanceSavingsPlans.Builderconfiguration(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.Ec2InstanceSavingsPlans.BuildercostCalculation(SavingsPlansCostCalculation costCalculation)Cost impact of the Savings Plans purchase recommendation.-
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
-
configuration
Ec2InstanceSavingsPlans.Builder configuration(Ec2InstanceSavingsPlansConfiguration 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:
configuration(Ec2InstanceSavingsPlansConfiguration)
-
costCalculation
Ec2InstanceSavingsPlans.Builder costCalculation(SavingsPlansCostCalculation 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:
costCalculation(SavingsPlansCostCalculation)
-
-