public CustomizedLoadMetricSpecification withDimensions(java.util.Collection<MetricDimension> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions of the metric.
</p>
<p>
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your
customized load metric specification.
</p>

@param dimensions
       The dimensions of the metric.</p>
       <p>
       Conditional: If you published your metric with dimensions, you must specify the same dimensions in your
       customized load metric specification.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscalingplans/src/main/java/com/amazonaws/services/autoscalingplans/model/CustomizedLoadMetricSpecification.java