public CreateUserPoolRequest withAliasAttributes(String... aliasAttributes) {
        if (this.aliasAttributes == null) {
            setAliasAttributes(new java.util.ArrayList<String>(aliasAttributes.length));
        }
        for (String ele : aliasAttributes) {
            this.aliasAttributes.add(ele);
        }
        return this;
    }
<p>
Attributes supported as an alias for this user pool. Possible values: <b>phone_number</b>, <b>email</b>, or
<b>preferred_username</b>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAliasAttributes(java.util.Collection)} or {@link #withAliasAttributes(java.util.Collection)} if you
want to override the existing values.
</p>

@param aliasAttributes
       Attributes supported as an alias for this user pool. Possible values: <b>phone_number</b>, <b>email</b>,
       or <b>preferred_username</b>.
@return Returns a reference to this object so that method calls can be chained together.
@see AliasAttributeType
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/CreateUserPoolRequest.java