public CurrentMetricResult withDimensions(Dimensions dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions for the metrics.
</p>

@param dimensions
       The dimensions for the metrics.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java