public Item withAttachments(AttachmentItem... attachments) {
        if (this.attachments == null) {
            setAttachments(new java.util.ArrayList<AttachmentItem>(attachments.length));
        }
        for (AttachmentItem ele : attachments) {
            this.attachments.add(ele);
        }
        return this;
    }
<p>
Provides information about the attachments.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttachments(java.util.Collection)} or {@link #withAttachments(java.util.Collection)} if you want to
override the existing values.
</p>

@param attachments
       Provides information about the attachments.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectparticipant/src/main/java/com/amazonaws/services/connectparticipant/model/Item.java