public Task withAttachments(java.util.Collection<Attachment> attachments) {
        setAttachments(attachments);
        return this;
    }
<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.
@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/Task.java