public AdminCreateUserRequest withDesiredDeliveryMediums(String... desiredDeliveryMediums) {
        if (this.desiredDeliveryMediums == null) {
            setDesiredDeliveryMediums(new java.util.ArrayList<String>(desiredDeliveryMediums.length));
        }
        for (String ele : desiredDeliveryMediums) {
            this.desiredDeliveryMediums.add(ele);
        }
        return this;
    }
<p>
Specify <code>"EMAIL"</code> if email will be used to send the welcome message. Specify <code>"SMS"</code> if the
phone number will be used. The default value is <code>"SMS"</code>. You can specify more than one value.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDesiredDeliveryMediums(java.util.Collection)} or
{@link #withDesiredDeliveryMediums(java.util.Collection)} if you want to override the existing values.
</p>

@param desiredDeliveryMediums
       Specify <code>"EMAIL"</code> if email will be used to send the welcome message. Specify <code>"SMS"</code>
       if the phone number will be used. The default value is <code>"SMS"</code>. You can specify more than one
       value.
@return Returns a reference to this object so that method calls can be chained together.
@see DeliveryMediumType
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminCreateUserRequest.java