public Statistics withSum(Double sum) {
        setSum(sum);
        return this;
    }
<p>
The sum of the aggregated field values.
</p>

@param sum
       The sum of the aggregated field values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/Statistics.java