public GetTrainingDatasetResult withTrainingData(Dataset... trainingData) {
        if (this.trainingData == null) {
            setTrainingData(new java.util.ArrayList<Dataset>(trainingData.length));
        }
        for (Dataset ele : trainingData) {
            this.trainingData.add(ele);
        }
        return this;
    }
<p>
Metadata about the requested training data.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrainingData(java.util.Collection)} or {@link #withTrainingData(java.util.Collection)} if you want to
override the existing values.
</p>

@param trainingData
       Metadata about the requested training data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cleanroomsml/src/main/java/com/amazonaws/services/cleanroomsml/model/GetTrainingDatasetResult.java