public EmailRecipients withTo(RecipientDetail... to) {
        if (this.to == null) {
            setTo(new java.util.ArrayList<RecipientDetail>(to.length));
        }
        for (RecipientDetail ele : to) {
            this.to.add(ele);
        }
        return this;
    }
<p>
Specifies one or more recipients who receive the email.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTo(java.util.Collection)} or {@link #withTo(java.util.Collection)} if you want to override the
existing values.
</p>

@param to
       Specifies one or more recipients who receive the email.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/model/EmailRecipients.java