public PivotTotalOptions withTotalAggregationOptions(TotalAggregationOption... totalAggregationOptions) {
        if (this.totalAggregationOptions == null) {
            setTotalAggregationOptions(new java.util.ArrayList<TotalAggregationOption>(totalAggregationOptions.length));
        }
        for (TotalAggregationOption ele : totalAggregationOptions) {
            this.totalAggregationOptions.add(ele);
        }
        return this;
    }
<p>
The total aggregation options for each value field.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTotalAggregationOptions(java.util.Collection)} or
{@link #withTotalAggregationOptions(java.util.Collection)} if you want to override the existing values.
</p>

@param totalAggregationOptions
       The total aggregation options for each value field.
@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/PivotTotalOptions.java