Interface IdleSavingsOpportunity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IdleSavingsOpportunity.Builder,
,IdleSavingsOpportunity> SdkBuilder<IdleSavingsOpportunity.Builder,
,IdleSavingsOpportunity> SdkPojo
- Enclosing class:
IdleSavingsOpportunity
@Mutable
@NotThreadSafe
public static interface IdleSavingsOpportunity.Builder
extends SdkPojo, CopyableBuilder<IdleSavingsOpportunity.Builder,IdleSavingsOpportunity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault IdleSavingsOpportunity.Builder
estimatedMonthlySavings
(Consumer<IdleEstimatedMonthlySavings.Builder> estimatedMonthlySavings) The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.estimatedMonthlySavings
(IdleEstimatedMonthlySavings estimatedMonthlySavings) The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.savingsOpportunityPercentage
(Double savingsOpportunityPercentage) The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations.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 Details
-
savingsOpportunityPercentage
The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations.
- Parameters:
savingsOpportunityPercentage
- The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
IdleSavingsOpportunity.Builder estimatedMonthlySavings(IdleEstimatedMonthlySavings estimatedMonthlySavings) The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.
- Parameters:
estimatedMonthlySavings
- The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
default IdleSavingsOpportunity.Builder estimatedMonthlySavings(Consumer<IdleEstimatedMonthlySavings.Builder> estimatedMonthlySavings) The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.
This is a convenience method that creates an instance of theIdleEstimatedMonthlySavings.Builder
avoiding the need to create one manually viaIdleEstimatedMonthlySavings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toestimatedMonthlySavings(IdleEstimatedMonthlySavings)
.- Parameters:
estimatedMonthlySavings
- a consumer that will call methods onIdleEstimatedMonthlySavings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-