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

@param metricSpecification
       An object containing information about a metric.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TargetTrackingScalingPolicyConfiguration.java