public GetInstanceMetricDataResult withMetricName(InstanceMetricName metricName) {
        this.metricName = metricName.toString();
        return this;
    }
<p>
The name of the metric returned.
</p>

@param metricName
       The name of the metric returned.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceMetricName
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetInstanceMetricDataResult.java