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

        this.attachments = new com.amazonaws.internal.SdkInternalList<Attachment>(attachments);
    }
<p>
The Elastic Network Adapter that's associated with the task if the task uses the <code>awsvpc</code> network
mode.
</p>

@param attachments
       The Elastic Network Adapter that's associated with the task if the task uses the <code>awsvpc</code>
       network mode.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java