public DataSource withDataLocation(String dataLocation) {
        setDataLocation(dataLocation);
        return this;
    }
<p>
For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to upload to your dataset
is stored. For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to delete.
</p>
<p>
For example:
</p>
<p>
<code>s3://bucket-name/folder-name/fileName.csv</code>
</p>
<p>
If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or data deletion job to
consider multiple files, you can specify the path to the folder. With a data deletion job, Amazon Personalize
uses all files in the folder and any sub folder. Use the following syntax with a <code>/</code> after the folder
name:
</p>
<p>
<code>s3://bucket-name/folder-name/</code>
</p>

@param dataLocation
       For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to upload to your
       dataset is stored. For data deletion jobs, the path to the Amazon S3 bucket that stores the list of
       records to delete. </p>
       <p>
       For example:
       </p>
       <p>
       <code>s3://bucket-name/folder-name/fileName.csv</code>
       </p>
       <p>
       If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or data deletion
       job to consider multiple files, you can specify the path to the folder. With a data deletion job, Amazon
       Personalize uses all files in the folder and any sub folder. Use the following syntax with a
       <code>/</code> after the folder name:
       </p>
       <p>
       <code>s3://bucket-name/folder-name/</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/DataSource.java