public CreateDatasetRequest withDatasetType(String datasetType) {
        setDatasetType(datasetType);
        return this;
    }
<p>
The type of the dataset. Specify <code>train</code> for a training dataset. Specify <code>test</code> for a test
dataset.
</p>

@param datasetType
       The type of the dataset. Specify <code>train</code> for a training dataset. Specify <code>test</code> for
       a test dataset.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lookoutforvision/src/main/java/com/amazonaws/services/lookoutforvision/model/CreateDatasetRequest.java