/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes an Lambda function recommendation. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LambdaFunctionRecommendation implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the current function. *
*/ private String functionArn; /** ** The version number of the current function. *
*/ private String functionVersion; /** ** The Amazon Web Services account ID of the function. *
*/ private String accountId; /** ** The amount of memory, in MB, that's allocated to the current function. *
*/ private Integer currentMemorySize; /** ** The number of times your function code was applied during the look-back period. *
*/ private Long numberOfInvocations; /** ** An array of objects that describe the utilization metrics of the function. *
*/ private java.util.List* The number of days for which utilization metrics were analyzed for the function. *
*/ private Double lookbackPeriodInDays; /** ** The timestamp of when the function recommendation was last generated. *
*/ private java.util.Date lastRefreshTimestamp; /** ** The finding classification of the function. *
** Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its current
* configuration and its utilization history. This finding classification does not include finding reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at a
* lower level (under-provisioned) than required for your workload because its current configuration is not optimal.
* Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might
* lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the function.
* This could be because the function has not accumulated sufficient metric data, or the function does not qualify
* for a recommendation. This finding classification can include the InsufficientData
and
* Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
parameter
* with a value of Unavailable
in your GetLambdaFunctionRecommendations
request.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* An array of objects that describe the memory configuration recommendation options for the function. *
*/ private java.util.List* The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, * the more likely the current Lambda function requires more memory. *
*/ private String currentPerformanceRisk; /** ** A list of tags assigned to your Lambda function recommendations. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the current function. *
* * @param functionArn * The Amazon Resource Name (ARN) of the current function. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** ** The Amazon Resource Name (ARN) of the current function. *
* * @return The Amazon Resource Name (ARN) of the current function. */ public String getFunctionArn() { return this.functionArn; } /** ** The Amazon Resource Name (ARN) of the current function. *
* * @param functionArn * The Amazon Resource Name (ARN) of the current function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; } /** ** The version number of the current function. *
* * @param functionVersion * The version number of the current function. */ public void setFunctionVersion(String functionVersion) { this.functionVersion = functionVersion; } /** ** The version number of the current function. *
* * @return The version number of the current function. */ public String getFunctionVersion() { return this.functionVersion; } /** ** The version number of the current function. *
* * @param functionVersion * The version number of the current function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withFunctionVersion(String functionVersion) { setFunctionVersion(functionVersion); return this; } /** ** The Amazon Web Services account ID of the function. *
* * @param accountId * The Amazon Web Services account ID of the function. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** ** The Amazon Web Services account ID of the function. *
* * @return The Amazon Web Services account ID of the function. */ public String getAccountId() { return this.accountId; } /** ** The Amazon Web Services account ID of the function. *
* * @param accountId * The Amazon Web Services account ID of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withAccountId(String accountId) { setAccountId(accountId); return this; } /** ** The amount of memory, in MB, that's allocated to the current function. *
* * @param currentMemorySize * The amount of memory, in MB, that's allocated to the current function. */ public void setCurrentMemorySize(Integer currentMemorySize) { this.currentMemorySize = currentMemorySize; } /** ** The amount of memory, in MB, that's allocated to the current function. *
* * @return The amount of memory, in MB, that's allocated to the current function. */ public Integer getCurrentMemorySize() { return this.currentMemorySize; } /** ** The amount of memory, in MB, that's allocated to the current function. *
* * @param currentMemorySize * The amount of memory, in MB, that's allocated to the current function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withCurrentMemorySize(Integer currentMemorySize) { setCurrentMemorySize(currentMemorySize); return this; } /** ** The number of times your function code was applied during the look-back period. *
* * @param numberOfInvocations * The number of times your function code was applied during the look-back period. */ public void setNumberOfInvocations(Long numberOfInvocations) { this.numberOfInvocations = numberOfInvocations; } /** ** The number of times your function code was applied during the look-back period. *
* * @return The number of times your function code was applied during the look-back period. */ public Long getNumberOfInvocations() { return this.numberOfInvocations; } /** ** The number of times your function code was applied during the look-back period. *
* * @param numberOfInvocations * The number of times your function code was applied during the look-back period. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withNumberOfInvocations(Long numberOfInvocations) { setNumberOfInvocations(numberOfInvocations); return this; } /** ** An array of objects that describe the utilization metrics of the function. *
* * @return An array of objects that describe the utilization metrics of the function. */ public java.util.List* An array of objects that describe the utilization metrics of the function. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the function. */ public void setUtilizationMetrics(java.util.Collection* An array of objects that describe the utilization metrics of the function. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUtilizationMetrics(java.util.Collection)} or {@link #withUtilizationMetrics(java.util.Collection)} if * you want to override the existing values. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withUtilizationMetrics(LambdaFunctionUtilizationMetric... utilizationMetrics) { if (this.utilizationMetrics == null) { setUtilizationMetrics(new java.util.ArrayList* An array of objects that describe the utilization metrics of the function. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withUtilizationMetrics(java.util.Collection* The number of days for which utilization metrics were analyzed for the function. *
* * @param lookbackPeriodInDays * The number of days for which utilization metrics were analyzed for the function. */ public void setLookbackPeriodInDays(Double lookbackPeriodInDays) { this.lookbackPeriodInDays = lookbackPeriodInDays; } /** ** The number of days for which utilization metrics were analyzed for the function. *
* * @return The number of days for which utilization metrics were analyzed for the function. */ public Double getLookbackPeriodInDays() { return this.lookbackPeriodInDays; } /** ** The number of days for which utilization metrics were analyzed for the function. *
* * @param lookbackPeriodInDays * The number of days for which utilization metrics were analyzed for the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withLookbackPeriodInDays(Double lookbackPeriodInDays) { setLookbackPeriodInDays(lookbackPeriodInDays); return this; } /** ** The timestamp of when the function recommendation was last generated. *
* * @param lastRefreshTimestamp * The timestamp of when the function recommendation was last generated. */ public void setLastRefreshTimestamp(java.util.Date lastRefreshTimestamp) { this.lastRefreshTimestamp = lastRefreshTimestamp; } /** ** The timestamp of when the function recommendation was last generated. *
* * @return The timestamp of when the function recommendation was last generated. */ public java.util.Date getLastRefreshTimestamp() { return this.lastRefreshTimestamp; } /** ** The timestamp of when the function recommendation was last generated. *
* * @param lastRefreshTimestamp * The timestamp of when the function recommendation was last generated. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withLastRefreshTimestamp(java.util.Date lastRefreshTimestamp) { setLastRefreshTimestamp(lastRefreshTimestamp); return this; } /** ** The finding classification of the function. *
** Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its current
* configuration and its utilization history. This finding classification does not include finding reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at a
* lower level (under-provisioned) than required for your workload because its current configuration is not optimal.
* Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might
* lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the function.
* This could be because the function has not accumulated sufficient metric data, or the function does not qualify
* for a recommendation. This finding classification can include the InsufficientData
and
* Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
parameter
* with a value of Unavailable
in your GetLambdaFunctionRecommendations
request.
*
* Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its
* current configuration and its utilization history. This finding classification does not include finding
* reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at
* a lower level (under-provisioned) than required for your workload because its current configuration is not
* optimal. Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned
* resources might lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the
* function. This could be because the function has not accumulated sufficient metric data, or the function
* does not qualify for a recommendation. This finding classification can include the
* InsufficientData
and Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
* parameter with a value of Unavailable
in your GetLambdaFunctionRecommendations
* request.
*
* The finding classification of the function. *
** Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its current
* configuration and its utilization history. This finding classification does not include finding reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at a
* lower level (under-provisioned) than required for your workload because its current configuration is not optimal.
* Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might
* lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the function.
* This could be because the function has not accumulated sufficient metric data, or the function does not qualify
* for a recommendation. This finding classification can include the InsufficientData
and
* Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
parameter
* with a value of Unavailable
in your GetLambdaFunctionRecommendations
request.
*
* Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its
* current configuration and its utilization history. This finding classification does not include finding
* reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or
* at a lower level (under-provisioned) than required for your workload because its current configuration is
* not optimal. Over-provisioned resources might lead to unnecessary infrastructure cost, and
* under-provisioned resources might lead to poor application performance. This finding classification can
* include the MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason
* codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the
* function. This could be because the function has not accumulated sufficient metric data, or the function
* does not qualify for a recommendation. This finding classification can include the
* InsufficientData
and Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
* parameter with a value of Unavailable
in your GetLambdaFunctionRecommendations
* request.
*
* The finding classification of the function. *
** Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its current
* configuration and its utilization history. This finding classification does not include finding reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at a
* lower level (under-provisioned) than required for your workload because its current configuration is not optimal.
* Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might
* lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the function.
* This could be because the function has not accumulated sufficient metric data, or the function does not qualify
* for a recommendation. This finding classification can include the InsufficientData
and
* Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
parameter
* with a value of Unavailable
in your GetLambdaFunctionRecommendations
request.
*
* Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its
* current configuration and its utilization history. This finding classification does not include finding
* reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at
* a lower level (under-provisioned) than required for your workload because its current configuration is not
* optimal. Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned
* resources might lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the
* function. This could be because the function has not accumulated sufficient metric data, or the function
* does not qualify for a recommendation. This finding classification can include the
* InsufficientData
and Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
* parameter with a value of Unavailable
in your GetLambdaFunctionRecommendations
* request.
*
* The finding classification of the function. *
** Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its current
* configuration and its utilization history. This finding classification does not include finding reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at a
* lower level (under-provisioned) than required for your workload because its current configuration is not optimal.
* Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might
* lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the function.
* This could be because the function has not accumulated sufficient metric data, or the function does not qualify
* for a recommendation. This finding classification can include the InsufficientData
and
* Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
parameter
* with a value of Unavailable
in your GetLambdaFunctionRecommendations
request.
*
* Findings for functions include: *
*
* Optimized
— The function is correctly provisioned to run your workload based on its
* current configuration and its utilization history. This finding classification does not include finding
* reason codes.
*
* NotOptimized
— The function is performing at a higher level (over-provisioned) or at
* a lower level (under-provisioned) than required for your workload because its current configuration is not
* optimal. Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned
* resources might lead to poor application performance. This finding classification can include the
* MemoryUnderprovisioned
and MemoryUnderprovisioned
finding reason codes.
*
* Unavailable
— Compute Optimizer was unable to generate a recommendation for the
* function. This could be because the function has not accumulated sufficient metric data, or the function
* does not qualify for a recommendation. This finding classification can include the
* InsufficientData
and Inconclusive
finding reason codes.
*
* Functions with a finding of unavailable are not returned unless you specify the filter
* parameter with a value of Unavailable
in your GetLambdaFunctionRecommendations
* request.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory
* configuration can be sized down while still meeting the performance requirements of your workload. An
* over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part
* of the NotOptimized
finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory
* configuration doesn't meet the performance requirements of the workload. An under-provisioned function
* might lead to poor application performance. This finding reason code is part of the
* NotOptimized
finding classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute
* Optimizer to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute
* Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is
* part of the Unavailable
finding classification.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory
* configuration can be sized down while still meeting the performance requirements of your workload. An
* over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part
* of the NotOptimized
finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory
* configuration doesn't meet the performance requirements of the workload. An under-provisioned function
* might lead to poor application performance. This finding reason code is part of the
* NotOptimized
finding classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute
* Optimizer to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute
* Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is
* part of the Unavailable
finding classification.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFindingReasonCodes(java.util.Collection)} or {@link #withFindingReasonCodes(java.util.Collection)} if * you want to override the existing values. *
* * @param findingReasonCodes * The reason for the finding classification of the function.
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory
* configuration can be sized down while still meeting the performance requirements of your workload. An
* over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part
* of the NotOptimized
finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory
* configuration doesn't meet the performance requirements of the workload. An under-provisioned function
* might lead to poor application performance. This finding reason code is part of the
* NotOptimized
finding classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute
* Optimizer to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute
* Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is
* part of the Unavailable
finding classification.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory
* configuration can be sized down while still meeting the performance requirements of your workload. An
* over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part
* of the NotOptimized
finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory
* configuration doesn't meet the performance requirements of the workload. An under-provisioned function
* might lead to poor application performance. This finding reason code is part of the
* NotOptimized
finding classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute
* Optimizer to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute
* Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is
* part of the Unavailable
finding classification.
*
* The reason for the finding classification of the function. *
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory configuration can
* be sized down while still meeting the performance requirements of your workload. An over-provisioned function
* might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized
* finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory configuration
* doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor
* application performance. This finding reason code is part of the NotOptimized
finding
* classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute Optimizer
* to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute Optimizer
* cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the
* Unavailable
finding classification.
*
* Functions that have a finding classification of Optimized
don't have a finding reason code.
*
* Finding reason codes for functions include: *
*
* MemoryOverprovisioned
— The function is over-provisioned when its memory
* configuration can be sized down while still meeting the performance requirements of your workload. An
* over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part
* of the NotOptimized
finding classification.
*
* MemoryUnderprovisioned
— The function is under-provisioned when its memory
* configuration doesn't meet the performance requirements of the workload. An under-provisioned function
* might lead to poor application performance. This finding reason code is part of the
* NotOptimized
finding classification.
*
* InsufficientData
— The function does not have sufficient metric data for Compute
* Optimizer to generate a recommendation. For more information, see the Supported resources and
* requirements in the Compute Optimizer User Guide. This finding reason code is part of the
* Unavailable
finding classification.
*
* Inconclusive
— The function does not qualify for a recommendation because Compute
* Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is
* part of the Unavailable
finding classification.
*
* An array of objects that describe the memory configuration recommendation options for the function. *
* * @return An array of objects that describe the memory configuration recommendation options for the function. */ public java.util.List* An array of objects that describe the memory configuration recommendation options for the function. *
* * @param memorySizeRecommendationOptions * An array of objects that describe the memory configuration recommendation options for the function. */ public void setMemorySizeRecommendationOptions(java.util.Collection* An array of objects that describe the memory configuration recommendation options for the function. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMemorySizeRecommendationOptions(java.util.Collection)} or * {@link #withMemorySizeRecommendationOptions(java.util.Collection)} if you want to override the existing values. *
* * @param memorySizeRecommendationOptions * An array of objects that describe the memory configuration recommendation options for the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withMemorySizeRecommendationOptions(LambdaFunctionMemoryRecommendationOption... memorySizeRecommendationOptions) { if (this.memorySizeRecommendationOptions == null) { setMemorySizeRecommendationOptions(new java.util.ArrayList* An array of objects that describe the memory configuration recommendation options for the function. *
* * @param memorySizeRecommendationOptions * An array of objects that describe the memory configuration recommendation options for the function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withMemorySizeRecommendationOptions( java.util.Collection* The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, * the more likely the current Lambda function requires more memory. *
* * @param currentPerformanceRisk * The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the * risk, the more likely the current Lambda function requires more memory. * @see CurrentPerformanceRisk */ public void setCurrentPerformanceRisk(String currentPerformanceRisk) { this.currentPerformanceRisk = currentPerformanceRisk; } /** ** The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, * the more likely the current Lambda function requires more memory. *
* * @return The risk of the current Lambda function not meeting the performance needs of its workloads. The higher * the risk, the more likely the current Lambda function requires more memory. * @see CurrentPerformanceRisk */ public String getCurrentPerformanceRisk() { return this.currentPerformanceRisk; } /** ** The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, * the more likely the current Lambda function requires more memory. *
* * @param currentPerformanceRisk * The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the * risk, the more likely the current Lambda function requires more memory. * @return Returns a reference to this object so that method calls can be chained together. * @see CurrentPerformanceRisk */ public LambdaFunctionRecommendation withCurrentPerformanceRisk(String currentPerformanceRisk) { setCurrentPerformanceRisk(currentPerformanceRisk); return this; } /** ** The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, * the more likely the current Lambda function requires more memory. *
* * @param currentPerformanceRisk * The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the * risk, the more likely the current Lambda function requires more memory. * @return Returns a reference to this object so that method calls can be chained together. * @see CurrentPerformanceRisk */ public LambdaFunctionRecommendation withCurrentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk) { this.currentPerformanceRisk = currentPerformanceRisk.toString(); return this; } /** ** A list of tags assigned to your Lambda function recommendations. *
* * @return A list of tags assigned to your Lambda function recommendations. */ public java.util.List* A list of tags assigned to your Lambda function recommendations. *
* * @param tags * A list of tags assigned to your Lambda function recommendations. */ public void setTags(java.util.Collection* A list of tags assigned to your Lambda function recommendations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags assigned to your Lambda function recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags assigned to your Lambda function recommendations. *
* * @param tags * A list of tags assigned to your Lambda function recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionRecommendation withTags(java.util.Collection