public SubmitAttachmentStateChangesRequest withAttachments(AttachmentStateChange... attachments) {
        if (this.attachments == null) {
            setAttachments(new com.amazonaws.internal.SdkInternalList<AttachmentStateChange>(attachments.length));
        }
        for (AttachmentStateChange ele : attachments) {
            this.attachments.add(ele);
        }
        return this;
    }
<p>
Any attachments associated with the state change request.
</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
       Any attachments associated with the state change request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/SubmitAttachmentStateChangesRequest.java