public PutMetricAlarmRequest withDimensions(java.util.Collection<Dimension> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions for the metric specified in <code>MetricName</code>.
</p>

@param dimensions
       The dimensions for the metric specified in <code>MetricName</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/PutMetricAlarmRequest.java