Interface InstanceSavingsOpportunityAfterDiscounts.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceSavingsOpportunityAfterDiscounts.Builder,
,InstanceSavingsOpportunityAfterDiscounts> SdkBuilder<InstanceSavingsOpportunityAfterDiscounts.Builder,
,InstanceSavingsOpportunityAfterDiscounts> SdkPojo
- Enclosing class:
InstanceSavingsOpportunityAfterDiscounts
-
Method Summary
Modifier and TypeMethodDescriptionestimatedMonthlySavings
(Consumer<InstanceEstimatedMonthlySavings.Builder> estimatedMonthlySavings) An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations.estimatedMonthlySavings
(InstanceEstimatedMonthlySavings estimatedMonthlySavings) An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations.savingsOpportunityPercentage
(Double savingsOpportunityPercentage) The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts.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, sdkFields
-
Method Details
-
savingsOpportunityPercentage
InstanceSavingsOpportunityAfterDiscounts.Builder savingsOpportunityPercentage(Double savingsOpportunityPercentage) The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance recommendations.
- Parameters:
savingsOpportunityPercentage
- The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
InstanceSavingsOpportunityAfterDiscounts.Builder estimatedMonthlySavings(InstanceEstimatedMonthlySavings estimatedMonthlySavings) An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances discounts.
- Parameters:
estimatedMonthlySavings
- An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances discounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
default InstanceSavingsOpportunityAfterDiscounts.Builder estimatedMonthlySavings(Consumer<InstanceEstimatedMonthlySavings.Builder> estimatedMonthlySavings) An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances discounts.
This is a convenience method that creates an instance of theInstanceEstimatedMonthlySavings.Builder
avoiding the need to create one manually viaInstanceEstimatedMonthlySavings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toestimatedMonthlySavings(InstanceEstimatedMonthlySavings)
.- Parameters:
estimatedMonthlySavings
- a consumer that will call methods onInstanceEstimatedMonthlySavings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-