public DatasetMetadata withCalculatedFields(TopicCalculatedField... calculatedFields) {
        if (this.calculatedFields == null) {
            setCalculatedFields(new java.util.ArrayList<TopicCalculatedField>(calculatedFields.length));
        }
        for (TopicCalculatedField ele : calculatedFields) {
            this.calculatedFields.add(ele);
        }
        return this;
    }
<p>
The list of calculated field definitions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCalculatedFields(java.util.Collection)} or {@link #withCalculatedFields(java.util.Collection)} if you
want to override the existing values.
</p>

@param calculatedFields
       The list of calculated field definitions.
@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/DatasetMetadata.java