public DirectoryConnectSettings withCustomerUserName(String customerUserName) {
        setCustomerUserName(customerUserName);
        return this;
    }
<p>
The user name of an account in your self-managed directory that is used to connect to the directory. This account
must have the following permissions:
</p>
<ul>
<li>
<p>
Read users and groups
</p>
</li>
<li>
<p>
Create computer objects
</p>
</li>
<li>
<p>
Join computers to the domain
</p>
</li>
</ul>

@param customerUserName
       The user name of an account in your self-managed directory that is used to connect to the directory. This
       account must have the following permissions:</p>
       <ul>
       <li>
       <p>
       Read users and groups
       </p>
       </li>
       <li>
       <p>
       Create computer objects
       </p>
       </li>
       <li>
       <p>
       Join computers to the domain
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/DirectoryConnectSettings.java