public CreateDataSetRequest withColumnGroups(ColumnGroup... columnGroups) {
        if (this.columnGroups == null) {
            setColumnGroups(new java.util.ArrayList<ColumnGroup>(columnGroups.length));
        }
        for (ColumnGroup ele : columnGroups) {
            this.columnGroups.add(ele);
        }
        return this;
    }
<p>
Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial
hierarchy is supported.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setColumnGroups(java.util.Collection)} or {@link #withColumnGroups(java.util.Collection)} if you want to
override the existing values.
</p>

@param columnGroups
       Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial
       hierarchy is supported.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/CreateDataSetRequest.java