public KPISortConfiguration withTrendGroupSort(FieldSortOptions... trendGroupSort) {
        if (this.trendGroupSort == null) {
            setTrendGroupSort(new java.util.ArrayList<FieldSortOptions>(trendGroupSort.length));
        }
        for (FieldSortOptions ele : trendGroupSort) {
            this.trendGroupSort.add(ele);
        }
        return this;
    }
<p>
The sort configuration of the trend group fields.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrendGroupSort(java.util.Collection)} or {@link #withTrendGroupSort(java.util.Collection)} if you want
to override the existing values.
</p>

@param trendGroupSort
       The sort configuration of the trend group fields.
@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/KPISortConfiguration.java