public ListMetricsRequest withDimensions(java.util.Collection<DimensionFilter> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions to filter against. Only the dimensions that match exactly will be returned.
</p>

@param dimensions
       The dimensions to filter against. Only the dimensions that match exactly will be returned.
@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/ListMetricsRequest.java