public AutoMLS3DataSource withS3DataType(AutoMLS3DataType s3DataType) {
        this.s3DataType = s3DataType.toString();
        return this;
    }
<p>
The data type.
</p>
<ul>
<li>
<p>
If you choose <code>S3Prefix</code>, <code>S3Uri</code> identifies a key name prefix. SageMaker uses all objects
that match the specified key name prefix for model training.
</p>
<p>
The <code>S3Prefix</code> should have the following format:
</p>
<p>
<code>s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE</code>
</p>
</li>
<li>
<p>
If you choose <code>ManifestFile</code>, <code>S3Uri</code> identifies an object that is a manifest file
containing a list of object keys that you want SageMaker to use for model training.
</p>
<p>
A <code>ManifestFile</code> should have the format shown below:
</p>
<p>
<code>[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"}, </code>
</p>
<p>
<code>"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",</code>
</p>
<p>
<code>"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",</code>
</p>
<p>
<code>... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]</code>
</p>
</li>
<li>
<p>
If you choose <code>AugmentedManifestFile</code>, <code>S3Uri</code> identifies an object that is an augmented
manifest file in JSON lines format. This file contains the data you want to use for model training.
<code>AugmentedManifestFile</code> is available for V2 API jobs only (for example, for jobs created by calling
<code>CreateAutoMLJobV2</code>).
</p>
<p>
Here is a minimal, single-record example of an <code>AugmentedManifestFile</code>:
</p>
<p>
<code>{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",</code>
</p>
<p>
<code>"label-metadata": {"class-name": "cat"</code>
</p>
<p>
For more information on <code>AugmentedManifestFile</code>, see <a
href="https://docs.aws.amazon.com/sagemaker/latest/dg/augmented-manifest.html">Provide Dataset Metadata to
Training Jobs with an Augmented Manifest File</a>.
</p>
</li>
</ul>

@param s3DataType
       The data type. </p>
       <ul>
       <li>
       <p>
       If you choose <code>S3Prefix</code>, <code>S3Uri</code> identifies a key name prefix. SageMaker uses all
       objects that match the specified key name prefix for model training.
       </p>
       <p>
       The <code>S3Prefix</code> should have the following format:
       </p>
       <p>
       <code>s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE</code>
       </p>
       </li>
       <li>
       <p>
       If you choose <code>ManifestFile</code>, <code>S3Uri</code> identifies an object that is a manifest file
       containing a list of object keys that you want SageMaker to use for model training.
       </p>
       <p>
       A <code>ManifestFile</code> should have the format shown below:
       </p>
       <p>
       <code>[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"}, </code>
       </p>
       <p>
       <code>"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",</code>
       </p>
       <p>
       <code>"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",</code>
       </p>
       <p>
       <code>... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]</code>
       </p>
       </li>
       <li>
       <p>
       If you choose <code>AugmentedManifestFile</code>, <code>S3Uri</code> identifies an object that is an
       augmented manifest file in JSON lines format. This file contains the data you want to use for model
       training. <code>AugmentedManifestFile</code> is available for V2 API jobs only (for example, for jobs
       created by calling <code>CreateAutoMLJobV2</code>).
       </p>
       <p>
       Here is a minimal, single-record example of an <code>AugmentedManifestFile</code>:
       </p>
       <p>
       <code>{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",</code>
       </p>
       <p>
       <code>"label-metadata": {"class-name": "cat"</code>
       </p>
       <p>
       For more information on <code>AugmentedManifestFile</code>, see <a
       href="https://docs.aws.amazon.com/sagemaker/latest/dg/augmented-manifest.html">Provide Dataset Metadata to
       Training Jobs with an Augmented Manifest File</a>.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see AutoMLS3DataType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/AutoMLS3DataSource.java