Interface ECSServiceRecommendationOption.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ECSServiceRecommendationOption.Builder,
,ECSServiceRecommendationOption> SdkBuilder<ECSServiceRecommendationOption.Builder,
,ECSServiceRecommendationOption> SdkPojo
- Enclosing class:
ECSServiceRecommendationOption
-
Method Summary
Modifier and TypeMethodDescriptioncontainerRecommendations
(Collection<ContainerRecommendation> containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.containerRecommendations
(Consumer<ContainerRecommendation.Builder>... containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.containerRecommendations
(ContainerRecommendation... containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.The CPU size of the Amazon ECS service recommendation option.The memory size of the Amazon ECS service recommendation option.projectedUtilizationMetrics
(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.projectedUtilizationMetrics
(Consumer<ECSServiceProjectedUtilizationMetric.Builder>... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.projectedUtilizationMetrics
(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.savingsOpportunity
(Consumer<SavingsOpportunity.Builder> savingsOpportunity) Sets the value of the SavingsOpportunity property for this object.savingsOpportunity
(SavingsOpportunity savingsOpportunity) Sets the value of the SavingsOpportunity property for this object.savingsOpportunityAfterDiscounts
(Consumer<ECSSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts) Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.savingsOpportunityAfterDiscounts
(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts) Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.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
-
memory
The memory size of the Amazon ECS service recommendation option.
- Parameters:
memory
- The memory size of the Amazon ECS service recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpu
The CPU size of the Amazon ECS service recommendation option.
- Parameters:
cpu
- The CPU size of the Amazon ECS service recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunity
Sets the value of the SavingsOpportunity property for this object.- Parameters:
savingsOpportunity
- The new value for the SavingsOpportunity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunity
default ECSServiceRecommendationOption.Builder savingsOpportunity(Consumer<SavingsOpportunity.Builder> savingsOpportunity) Sets the value of the SavingsOpportunity property for this object. This is a convenience method that creates an instance of theSavingsOpportunity.Builder
avoiding the need to create one manually viaSavingsOpportunity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsOpportunity(SavingsOpportunity)
.- Parameters:
savingsOpportunity
- a consumer that will call methods onSavingsOpportunity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
projectedUtilizationMetrics
ECSServiceRecommendationOption.Builder projectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
- Parameters:
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectedUtilizationMetrics
ECSServiceRecommendationOption.Builder projectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
- Parameters:
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectedUtilizationMetrics
ECSServiceRecommendationOption.Builder projectedUtilizationMetrics(Consumer<ECSServiceProjectedUtilizationMetric.Builder>... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
This is a convenience method that creates an instance of theECSServiceProjectedUtilizationMetric.Builder
avoiding the need to create one manually viaECSServiceProjectedUtilizationMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprojectedUtilizationMetrics(List<ECSServiceProjectedUtilizationMetric>)
.- Parameters:
projectedUtilizationMetrics
- a consumer that will call methods onECSServiceProjectedUtilizationMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerRecommendations
ECSServiceRecommendationOption.Builder containerRecommendations(Collection<ContainerRecommendation> containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
- Parameters:
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerRecommendations
ECSServiceRecommendationOption.Builder containerRecommendations(ContainerRecommendation... containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
- Parameters:
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerRecommendations
ECSServiceRecommendationOption.Builder containerRecommendations(Consumer<ContainerRecommendation.Builder>... containerRecommendations) The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
This is a convenience method that creates an instance of theContainerRecommendation.Builder
avoiding the need to create one manually viaContainerRecommendation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerRecommendations(List<ContainerRecommendation>)
.- Parameters:
containerRecommendations
- a consumer that will call methods onContainerRecommendation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
savingsOpportunityAfterDiscounts
ECSServiceRecommendationOption.Builder savingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts) Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
- Parameters:
savingsOpportunityAfterDiscounts
- Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunityAfterDiscounts
default ECSServiceRecommendationOption.Builder savingsOpportunityAfterDiscounts(Consumer<ECSSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts) Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
This is a convenience method that creates an instance of theECSSavingsOpportunityAfterDiscounts.Builder
avoiding the need to create one manually viaECSSavingsOpportunityAfterDiscounts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts)
.- Parameters:
savingsOpportunityAfterDiscounts
- a consumer that will call methods onECSSavingsOpportunityAfterDiscounts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-