Interface LambdaFunctionMemoryRecommendationOption.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LambdaFunctionMemoryRecommendationOption.Builder,LambdaFunctionMemoryRecommendationOption>,SdkBuilder<LambdaFunctionMemoryRecommendationOption.Builder,LambdaFunctionMemoryRecommendationOption>,SdkPojo
- Enclosing class:
- LambdaFunctionMemoryRecommendationOption
public static interface LambdaFunctionMemoryRecommendationOption.Builder extends SdkPojo, CopyableBuilder<LambdaFunctionMemoryRecommendationOption.Builder,LambdaFunctionMemoryRecommendationOption>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LambdaFunctionMemoryRecommendationOption.BuildermemorySize(Integer memorySize)The memory size, in MB, of the function recommendation option.LambdaFunctionMemoryRecommendationOption.BuilderprojectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the function recommendation option.LambdaFunctionMemoryRecommendationOption.BuilderprojectedUtilizationMetrics(Consumer<LambdaFunctionMemoryProjectedMetric.Builder>... projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the function recommendation option.LambdaFunctionMemoryRecommendationOption.BuilderprojectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric... projectedUtilizationMetrics)An array of objects that describe the projected utilization metrics of the function recommendation option.LambdaFunctionMemoryRecommendationOption.Builderrank(Integer rank)The rank of the function recommendation option.default LambdaFunctionMemoryRecommendationOption.BuildersavingsOpportunity(Consumer<SavingsOpportunity.Builder> savingsOpportunity)An object that describes the savings opportunity for the Lambda function recommendation option.LambdaFunctionMemoryRecommendationOption.BuildersavingsOpportunity(SavingsOpportunity savingsOpportunity)An object that describes the savings opportunity for the Lambda function recommendation option.default LambdaFunctionMemoryRecommendationOption.BuildersavingsOpportunityAfterDiscounts(Consumer<LambdaSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts)An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans discounts.LambdaFunctionMemoryRecommendationOption.BuildersavingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans 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 Detail
-
rank
LambdaFunctionMemoryRecommendationOption.Builder rank(Integer rank)
The rank of the function recommendation option.
The top recommendation option is ranked as
1.- Parameters:
rank- The rank of the function recommendation option.The top recommendation option is ranked as
1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memorySize
LambdaFunctionMemoryRecommendationOption.Builder memorySize(Integer memorySize)
The memory size, in MB, of the function recommendation option.
- Parameters:
memorySize- The memory size, in MB, of the function recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectedUtilizationMetrics
LambdaFunctionMemoryRecommendationOption.Builder projectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
- Parameters:
projectedUtilizationMetrics- An array of objects that describe the projected utilization metrics of the function recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectedUtilizationMetrics
LambdaFunctionMemoryRecommendationOption.Builder projectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
- Parameters:
projectedUtilizationMetrics- An array of objects that describe the projected utilization metrics of the function recommendation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectedUtilizationMetrics
LambdaFunctionMemoryRecommendationOption.Builder projectedUtilizationMetrics(Consumer<LambdaFunctionMemoryProjectedMetric.Builder>... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
This is a convenience method that creates an instance of theLambdaFunctionMemoryProjectedMetric.Builderavoiding the need to create one manually viaLambdaFunctionMemoryProjectedMetric.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 onLambdaFunctionMemoryProjectedMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#projectedUtilizationMetrics(java.util.Collection)
-
savingsOpportunity
LambdaFunctionMemoryRecommendationOption.Builder savingsOpportunity(SavingsOpportunity savingsOpportunity)
An object that describes the savings opportunity for the Lambda function recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
- Parameters:
savingsOpportunity- An object that describes the savings opportunity for the Lambda function recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunity
default LambdaFunctionMemoryRecommendationOption.Builder savingsOpportunity(Consumer<SavingsOpportunity.Builder> savingsOpportunity)
An object that describes the savings opportunity for the Lambda function recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
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)
-
savingsOpportunityAfterDiscounts
LambdaFunctionMemoryRecommendationOption.Builder savingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)
An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans discounts. Savings opportunity includes the estimated monthly savings and percentage.
- Parameters:
savingsOpportunityAfterDiscounts- An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans discounts. Savings opportunity includes the estimated monthly savings and percentage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunityAfterDiscounts
default LambdaFunctionMemoryRecommendationOption.Builder savingsOpportunityAfterDiscounts(Consumer<LambdaSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts)
An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans discounts. Savings opportunity includes the estimated monthly savings and percentage.
This is a convenience method that creates an instance of theLambdaSavingsOpportunityAfterDiscounts.Builderavoiding the need to create one manually viaLambdaSavingsOpportunityAfterDiscounts.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosavingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts).- Parameters:
savingsOpportunityAfterDiscounts- a consumer that will call methods onLambdaSavingsOpportunityAfterDiscounts.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
savingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts)
-
-