public MetricDatapoint withAverage(Double average) {
        setAverage(average);
        return this;
    }
<p>
The average.
</p>

@param average
       The average.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/MetricDatapoint.java