public CreateUserRequest withAddresses(Address... addresses) {
        if (this.addresses == null) {
            setAddresses(new java.util.ArrayList<Address>(addresses.length));
        }
        for (Address ele : addresses) {
            this.addresses.add(ele);
        }
        return this;
    }
<p>
A list of <code>Address</code> objects containing addresses associated with the user.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAddresses(java.util.Collection)} or {@link #withAddresses(java.util.Collection)} if you want to
override the existing values.
</p>

@param addresses
       A list of <code>Address</code> objects containing addresses associated with the user.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-identitystore/src/main/java/com/amazonaws/services/identitystore/model/CreateUserRequest.java