public UpdateAccessRequest withHomeDirectoryMappings(HomeDirectoryMapEntry... homeDirectoryMappings) {
        if (this.homeDirectoryMappings == null) {
            setHomeDirectoryMappings(new java.util.ArrayList<HomeDirectoryMapEntry>(homeDirectoryMappings.length));
        }
        for (HomeDirectoryMapEntry ele : homeDirectoryMappings) {
            this.homeDirectoryMappings.add(ele);
        }
        return this;
    }
<p>
Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your
user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair,
where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or
Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and
Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only when
<code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.
</p>
<p>
The following is an <code>Entry</code> and <code>Target</code> pair example.
</p>
<p>
<code>[ { "Entry": "/directory1", "Target": "/bucket_name/home/mydirectory" } ]</code>
</p>
<p>
In most cases, you can use this value instead of the session policy to lock down your user to the designated home
directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to <code>/</code> and set
<code>Target</code> to the <code>HomeDirectory</code> parameter value.
</p>
<p>
The following is an <code>Entry</code> and <code>Target</code> pair example for <code>chroot</code>.
</p>
<p>
<code>[ { "Entry": "/", "Target": "/bucket_name/home/mydirectory" } ]</code>
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHomeDirectoryMappings(java.util.Collection)} or
{@link #withHomeDirectoryMappings(java.util.Collection)} if you want to override the existing values.
</p>

@param homeDirectoryMappings
       Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to
       your user and how you want to make them visible. You must specify the <code>Entry</code> and
       <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and
       <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is
       displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access
       to paths in <code>Target</code>. This value can be set only when <code>HomeDirectoryType</code> is set to
       <i>LOGICAL</i>.</p>
       <p>
       The following is an <code>Entry</code> and <code>Target</code> pair example.
       </p>
       <p>
       <code>[ { "Entry": "/directory1", "Target": "/bucket_name/home/mydirectory" } ]</code>
       </p>
       <p>
       In most cases, you can use this value instead of the session policy to lock down your user to the
       designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to
       <code>/</code> and set <code>Target</code> to the <code>HomeDirectory</code> parameter value.
       </p>
       <p>
       The following is an <code>Entry</code> and <code>Target</code> pair example for <code>chroot</code>.
       </p>
       <p>
       <code>[ { "Entry": "/", "Target": "/bucket_name/home/mydirectory" } ]</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/UpdateAccessRequest.java