public DimensionGroupDetail withDimensions(java.util.Collection<DimensionDetail> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The dimensions within a dimension group.
</p>

@param dimensions
       The dimensions within a dimension group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/DimensionGroupDetail.java