public CreateDataRepositoryTaskRequest withType(DataRepositoryTaskType type) {
        this.type = type.toString();
        return this;
    }
<p>
Specifies the type of data repository task to create.
</p>
<ul>
<li>
<p>
<code>EXPORT_TO_REPOSITORY</code> tasks export from your Amazon FSx for Lustre file system to a linked data
repository.
</p>
</li>
<li>
<p>
<code>IMPORT_METADATA_FROM_REPOSITORY</code> tasks import metadata changes from a linked S3 bucket to your Amazon
FSx for Lustre file system.
</p>
</li>
<li>
<p>
<code>RELEASE_DATA_FROM_FILESYSTEM</code> tasks release files in your Amazon FSx for Lustre file system that have
been exported to a linked S3 bucket and that meet your specified release criteria.
</p>
</li>
<li>
<p>
<code>AUTO_RELEASE_DATA</code> tasks automatically release files from an Amazon File Cache resource.
</p>
</li>
</ul>

@param type
       Specifies the type of data repository task to create.</p>
       <ul>
       <li>
       <p>
       <code>EXPORT_TO_REPOSITORY</code> tasks export from your Amazon FSx for Lustre file system to a linked
       data repository.
       </p>
       </li>
       <li>
       <p>
       <code>IMPORT_METADATA_FROM_REPOSITORY</code> tasks import metadata changes from a linked S3 bucket to your
       Amazon FSx for Lustre file system.
       </p>
       </li>
       <li>
       <p>
       <code>RELEASE_DATA_FROM_FILESYSTEM</code> tasks release files in your Amazon FSx for Lustre file system
       that have been exported to a linked S3 bucket and that meet your specified release criteria.
       </p>
       </li>
       <li>
       <p>
       <code>AUTO_RELEASE_DATA</code> tasks automatically release files from an Amazon File Cache resource.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see DataRepositoryTaskType
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CreateDataRepositoryTaskRequest.java