public TargetTrackingScalingPolicyConfiguration withMetricSpecification(MetricSpecification metricSpecification) {
        setMetricSpecification(metricSpecification);
        return this;
    }
<p>
An object containing information about a metric.
</p>

@param metricSpecification
       An object containing information about a metric.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TargetTrackingScalingPolicyConfiguration.java