public EnableAwsNetworkPerformanceMetricSubscriptionRequest withStatistic(StatisticType statistic) {
        this.statistic = statistic.toString();
        return this;
    }
<p>
The statistic used for the enabled subscription.
</p>

@param statistic
       The statistic used for the enabled subscription.
@return Returns a reference to this object so that method calls can be chained together.
@see StatisticType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/EnableAwsNetworkPerformanceMetricSubscriptionRequest.java