Interface ECSServiceRecommendationOption.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ECSServiceRecommendationOption.Builder,ECSServiceRecommendationOption>,SdkBuilder<ECSServiceRecommendationOption.Builder,ECSServiceRecommendationOption>,SdkPojo
- Enclosing class:
- ECSServiceRecommendationOption
public static interface ECSServiceRecommendationOption.Builder extends SdkPojo, CopyableBuilder<ECSServiceRecommendationOption.Builder,ECSServiceRecommendationOption>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ECSServiceRecommendationOption.BuildercontainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.ECSServiceRecommendationOption.BuildercontainerRecommendations(Consumer<ContainerRecommendation.Builder>... containerRecommendations)The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.ECSServiceRecommendationOption.BuildercontainerRecommendations(ContainerRecommendation... containerRecommendations)The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.ECSServiceRecommendationOption.Buildercpu(Integer cpu)The CPU size of the Amazon ECS service recommendation option.ECSServiceRecommendationOption.Buildermemory(Integer memory)The memory size of the Amazon ECS service recommendation option.ECSServiceRecommendationOption.BuilderprojectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.ECSServiceRecommendationOption.BuilderprojectedUtilizationMetrics(Consumer<ECSServiceProjectedUtilizationMetric.Builder>... projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.ECSServiceRecommendationOption.BuilderprojectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.default ECSServiceRecommendationOption.BuildersavingsOpportunity(Consumer<SavingsOpportunity.Builder> savingsOpportunity)Sets the value of the SavingsOpportunity property for this object.ECSServiceRecommendationOption.BuildersavingsOpportunity(SavingsOpportunity savingsOpportunity)Sets the value of the SavingsOpportunity property for this object.default ECSServiceRecommendationOption.BuildersavingsOpportunityAfterDiscounts(Consumer<ECSSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts)Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.ECSServiceRecommendationOption.BuildersavingsOpportunityAfterDiscounts(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 Detail
-
memory
ECSServiceRecommendationOption.Builder memory(Integer 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
ECSServiceRecommendationOption.Builder cpu(Integer 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
ECSServiceRecommendationOption.Builder savingsOpportunity(SavingsOpportunity 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.Builderavoiding the need to create one manually viaSavingsOpportunity.builder().When the
Consumercompletes,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:
savingsOpportunity(SavingsOpportunity)
-
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.Builderavoiding the need to create one manually viaECSServiceProjectedUtilizationMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#projectedUtilizationMetrics(List.) - 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:
#projectedUtilizationMetrics(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaContainerRecommendation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containerRecommendations(List.) - 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:
#containerRecommendations(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaECSSavingsOpportunityAfterDiscounts.builder().When the
Consumercompletes,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:
savingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts)
-
-