public void setDimensions(java.util.Collection<DimensionFilter> dimensions) {
        if (dimensions == null) {
            this.dimensions = null;
            return;
        }

        this.dimensions = new com.amazonaws.internal.SdkInternalList<DimensionFilter>(dimensions);
    }
<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.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/ListMetricsRequest.java