public CreateUserPoolRequest withAliasAttributes(AliasAttributeType... aliasAttributes) {
        java.util.ArrayList<String> aliasAttributesCopy = new java.util.ArrayList<String>(aliasAttributes.length);
        for (AliasAttributeType value : aliasAttributes) {
            aliasAttributesCopy.add(value.toString());
        }
        if (getAliasAttributes() == null) {
            setAliasAttributes(aliasAttributesCopy);
        } else {
            getAliasAttributes().addAll(aliasAttributesCopy);
        }
        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>

@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