public EnableAwsNetworkPerformanceMetricSubscriptionRequest withMetric(String metric) {
        setMetric(metric);
        return this;
    }
<p>
The metric used for the enabled subscription.
</p>

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