Interface LambdaFunctionMemoryRecommendationOption.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LambdaFunctionMemoryRecommendationOption.Builder,,LambdaFunctionMemoryRecommendationOption> SdkBuilder<LambdaFunctionMemoryRecommendationOption.Builder,,LambdaFunctionMemoryRecommendationOption> SdkPojo
- Enclosing class:
LambdaFunctionMemoryRecommendationOption
-
Method Summary
Modifier and TypeMethodDescriptionmemorySize(Integer memorySize) The memory size, in MB, of the function recommendation option.projectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the function recommendation option.projectedUtilizationMetrics(Consumer<LambdaFunctionMemoryProjectedMetric.Builder>... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the function recommendation option.projectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric... projectedUtilizationMetrics) An array of objects that describe the projected utilization metrics of the function recommendation option.The rank of the function recommendation option.savingsOpportunity(Consumer<SavingsOpportunity.Builder> savingsOpportunity) An object that describes the savings opportunity for the Lambda function recommendation option.savingsOpportunity(SavingsOpportunity savingsOpportunity) An object that describes the savings opportunity for the Lambda function recommendation option.savingsOpportunityAfterDiscounts(Consumer<LambdaSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts) An object that describes the savings opportunity for the Lambda recommendation option which includes Saving Plans discounts.savingsOpportunityAfterDiscounts(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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 toprojectedUtilizationMetrics(List<LambdaFunctionMemoryProjectedMetric>).- 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:
-
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:
-
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:
-