public void setAttachments(java.util.Collection<AttachmentStateChange> attachments) {
        if (attachments == null) {
            this.attachments = null;
            return;
        }

        this.attachments = new com.amazonaws.internal.SdkInternalList<AttachmentStateChange>(attachments);
    }
<p>
Any attachments associated with the state change request.
</p>

@param attachments
       Any attachments associated with the state change request.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/SubmitAttachmentStateChangesRequest.java