public CreateFileSystemLustreConfiguration withAutoImportPolicy(String autoImportPolicy) {
        setAutoImportPolicy(autoImportPolicy);
        return this;
    }
<p>
(Optional) When you create your file system, your existing S3 objects appear as file and directory listings. Use
this parameter to choose how Amazon FSx keeps your file and directory listings up to date as you add or modify
objects in your linked S3 bucket. <code>AutoImportPolicy</code> can have the following values:
</p>
<ul>
<li>
<p>
<code>NONE</code> - (Default) AutoImport is off. Amazon FSx only updates file and directory listings from the
linked S3 bucket when the file system is created. FSx does not update file and directory listings for any new or
changed objects after choosing this option.
</p>
</li>
<li>
<p>
<code>NEW</code> - AutoImport is on. Amazon FSx automatically imports directory listings of any new objects added
to the linked S3 bucket that do not currently exist in the FSx file system.
</p>
</li>
<li>
<p>
<code>NEW_CHANGED</code> - AutoImport is on. Amazon FSx automatically imports file and directory listings of any
new objects added to the S3 bucket and any existing objects that are changed in the S3 bucket after you choose
this option.
</p>
</li>
<li>
<p>
<code>NEW_CHANGED_DELETED</code> - AutoImport is on. Amazon FSx automatically imports file and directory listings
of any new objects added to the S3 bucket, any existing objects that are changed in the S3 bucket, and any
objects that were deleted in the S3 bucket.
</p>
</li>
</ul>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/fsx/latest/LustreGuide/older-deployment-types.html#legacy-auto-import-from-s3">
Automatically import updates from your S3 bucket</a>.
</p>
<note>
<p>
This parameter is not supported for file systems with a data repository association.
</p>
</note>

@param autoImportPolicy
       (Optional) When you create your file system, your existing S3 objects appear as file and directory
       listings. Use this parameter to choose how Amazon FSx keeps your file and directory listings up to date as
       you add or modify objects in your linked S3 bucket. <code>AutoImportPolicy</code> can have the following
       values:</p>
       <ul>
       <li>
       <p>
       <code>NONE</code> - (Default) AutoImport is off. Amazon FSx only updates file and directory listings from
       the linked S3 bucket when the file system is created. FSx does not update file and directory listings for
       any new or changed objects after choosing this option.
       </p>
       </li>
       <li>
       <p>
       <code>NEW</code> - AutoImport is on. Amazon FSx automatically imports directory listings of any new
       objects added to the linked S3 bucket that do not currently exist in the FSx file system.
       </p>
       </li>
       <li>
       <p>
       <code>NEW_CHANGED</code> - AutoImport is on. Amazon FSx automatically imports file and directory listings
       of any new objects added to the S3 bucket and any existing objects that are changed in the S3 bucket after
       you choose this option.
       </p>
       </li>
       <li>
       <p>
       <code>NEW_CHANGED_DELETED</code> - AutoImport is on. Amazon FSx automatically imports file and directory
       listings of any new objects added to the S3 bucket, any existing objects that are changed in the S3
       bucket, and any objects that were deleted in the S3 bucket.
       </p>
       </li>
       </ul>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/fsx/latest/LustreGuide/older-deployment-types.html#legacy-auto-import-from-s3"
       > Automatically import updates from your S3 bucket</a>.
       </p>
       <note>
       <p>
       This parameter is not supported for file systems with a data repository association.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see AutoImportPolicyType
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CreateFileSystemLustreConfiguration.java