public CreateTrainingDatasetRequest withTrainingData(java.util.Collection<Dataset> trainingData) {
        setTrainingData(trainingData);
        return this;
    }
<p>
An array of information that lists the Dataset objects, which specifies the dataset type and details on its
location and schema. You must provide a role that has read access to these tables.
</p>

@param trainingData
       An array of information that lists the Dataset objects, which specifies the dataset type and details on
       its location and schema. You must provide a role that has read access to these tables.
@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/CreateTrainingDatasetRequest.java