Interface SavingsOpportunity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SavingsOpportunity.Builder,
,SavingsOpportunity> SdkBuilder<SavingsOpportunity.Builder,
,SavingsOpportunity> SdkPojo
- Enclosing class:
SavingsOpportunity
public static interface SavingsOpportunity.Builder
extends SdkPojo, CopyableBuilder<SavingsOpportunity.Builder,SavingsOpportunity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SavingsOpportunity.Builder
estimatedMonthlySavings
(Consumer<EstimatedMonthlySavings.Builder> estimatedMonthlySavings) An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource.estimatedMonthlySavings
(EstimatedMonthlySavings estimatedMonthlySavings) An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource.savingsOpportunityPercentage
(Double savingsOpportunityPercentage) The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.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
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.
- Parameters:
savingsOpportunityPercentage
- The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..
- Parameters:
estimatedMonthlySavings
- An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
default SavingsOpportunity.Builder estimatedMonthlySavings(Consumer<EstimatedMonthlySavings.Builder> estimatedMonthlySavings) An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..
This is a convenience method that creates an instance of theEstimatedMonthlySavings.Builder
avoiding the need to create one manually viaEstimatedMonthlySavings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toestimatedMonthlySavings(EstimatedMonthlySavings)
.- Parameters:
estimatedMonthlySavings
- a consumer that will call methods onEstimatedMonthlySavings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-