public ListTrainingDatasetsResult withTrainingDatasets(TrainingDatasetSummary... trainingDatasets) {
        if (this.trainingDatasets == null) {
            setTrainingDatasets(new java.util.ArrayList<TrainingDatasetSummary>(trainingDatasets.length));
        }
        for (TrainingDatasetSummary ele : trainingDatasets) {
            this.trainingDatasets.add(ele);
        }
        return this;
    }
<p>
The training datasets that match the request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrainingDatasets(java.util.Collection)} or {@link #withTrainingDatasets(java.util.Collection)} if you
want to override the existing values.
</p>

@param trainingDatasets
       The training datasets that match the request.
@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/ListTrainingDatasetsResult.java