public AdminCreateUserRequest withDesiredDeliveryMediums(DeliveryMediumType... desiredDeliveryMediums) {
        java.util.ArrayList<String> desiredDeliveryMediumsCopy = new java.util.ArrayList<String>(desiredDeliveryMediums.length);
        for (DeliveryMediumType value : desiredDeliveryMediums) {
            desiredDeliveryMediumsCopy.add(value.toString());
        }
        if (getDesiredDeliveryMediums() == null) {
            setDesiredDeliveryMediums(desiredDeliveryMediumsCopy);
        } else {
            getDesiredDeliveryMediums().addAll(desiredDeliveryMediumsCopy);
        }
        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>

@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