public void setUserAttributes(java.util.Collection<AttributeType> userAttributes) {
        if (userAttributes == null) {
            this.userAttributes = null;
            return;
        }

        this.userAttributes = new java.util.ArrayList<AttributeType>(userAttributes);
    }
<p>
An array of name-value pairs that contain user attributes and attribute values to be set for the user to be
created. You can create a user without specifying any attributes other than <code>Username</code>. However, any
attributes that you specify as required (when creating a user pool or in the <b>Attributes</b> tab of the
console) either you should supply (in your call to <code>AdminCreateUser</code>) or the user should supply (when
they sign up in response to your welcome message).
</p>
<p>
For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.
</p>
<p>
To send a message inviting the user to sign up, you must specify the user's email address or phone number. You
can do this in your call to AdminCreateUser or in the <b>Users</b> tab of the Amazon Cognito console for managing
your user pools.
</p>
<p>
In your call to <code>AdminCreateUser</code>, you can set the <code>email_verified</code> attribute to
<code>True</code>, and you can set the <code>phone_number_verified</code> attribute to <code>True</code>. You can
also do this by calling <a href=
"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html"
>AdminUpdateUserAttributes</a>.
</p>
<ul>
<li>
<p>
<b>email</b>: The email address of the user to whom the message that contains the code and username will be sent.
Required if the <code>email_verified</code> attribute is set to <code>True</code>, or if <code>"EMAIL"</code> is
specified in the <code>DesiredDeliveryMediums</code> parameter.
</p>
</li>
<li>
<p>
<b>phone_number</b>: The phone number of the user to whom the message that contains the code and username will be
sent. Required if the <code>phone_number_verified</code> attribute is set to <code>True</code>, or if
<code>"SMS"</code> is specified in the <code>DesiredDeliveryMediums</code> parameter.
</p>
</li>
</ul>

@param userAttributes
       An array of name-value pairs that contain user attributes and attribute values to be set for the user to
       be created. You can create a user without specifying any attributes other than <code>Username</code>.
       However, any attributes that you specify as required (when creating a user pool or in the
       <b>Attributes</b> tab of the console) either you should supply (in your call to
       <code>AdminCreateUser</code>) or the user should supply (when they sign up in response to your welcome
       message).</p>
       <p>
       For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.
       </p>
       <p>
       To send a message inviting the user to sign up, you must specify the user's email address or phone number.
       You can do this in your call to AdminCreateUser or in the <b>Users</b> tab of the Amazon Cognito console
       for managing your user pools.
       </p>
       <p>
       In your call to <code>AdminCreateUser</code>, you can set the <code>email_verified</code> attribute to
       <code>True</code>, and you can set the <code>phone_number_verified</code> attribute to <code>True</code>.
       You can also do this by calling <a href=
       "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html"
       >AdminUpdateUserAttributes</a>.
       </p>
       <ul>
       <li>
       <p>
       <b>email</b>: The email address of the user to whom the message that contains the code and username will
       be sent. Required if the <code>email_verified</code> attribute is set to <code>True</code>, or if
       <code>"EMAIL"</code> is specified in the <code>DesiredDeliveryMediums</code> parameter.
       </p>
       </li>
       <li>
       <p>
       <b>phone_number</b>: The phone number of the user to whom the message that contains the code and username
       will be sent. Required if the <code>phone_number_verified</code> attribute is set to <code>True</code>, or
       if <code>"SMS"</code> is specified in the <code>DesiredDeliveryMediums</code> parameter.
       </p>
       </li>
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminCreateUserRequest.java