public DescribeAlarmsForMetricRequest withDimensions(java.util.Collection<Dimension> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in
order for the call to succeed.
</p>

@param dimensions
       The dimensions associated with the metric. If the metric has any associated dimensions, you must specify
       them in order for the call to succeed.
@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/DescribeAlarmsForMetricRequest.java