public LambdaFunctionUtilizationMetric withStatistic(String statistic) {
        setStatistic(statistic);
        return this;
    }
<p>
The statistic of the utilization metric.
</p>
<p>
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
<code>Maximum</code> statistic, which is the highest value observed during the specified period.
</p>
<p>
The Compute Optimizer console displays graphs for some utilization metrics using the <code>Average</code>
statistic, which is the value of <code>Sum</code> / <code>SampleCount</code> during the specified period. For
more information, see <a
href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/viewing-recommendations.html">Viewing resource
recommendations</a> in the <i>Compute Optimizer User Guide</i>. You can also get averaged utilization metric data
for your resources using Amazon CloudWatch. For more information, see the <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html">Amazon CloudWatch
User Guide</a>.
</p>

@param statistic
       The statistic of the utilization metric.</p>
       <p>
       The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only
       the <code>Maximum</code> statistic, which is the highest value observed during the specified period.
       </p>
       <p>
       The Compute Optimizer console displays graphs for some utilization metrics using the <code>Average</code>
       statistic, which is the value of <code>Sum</code> / <code>SampleCount</code> during the specified period.
       For more information, see <a
       href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/viewing-recommendations.html">Viewing
       resource recommendations</a> in the <i>Compute Optimizer User Guide</i>. You can also get averaged
       utilization metric data for your resources using Amazon CloudWatch. For more information, see the <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html">Amazon
       CloudWatch User Guide</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see LambdaFunctionMetricStatistic
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/LambdaFunctionUtilizationMetric.java