public java.util.List<Attachment> getAttachments() {
        if (attachments == null) {
            attachments = new com.amazonaws.internal.SdkInternalList<Attachment>();
        }
        return attachments;
    }
<p>
The Elastic Network Adapter that's associated with the task if the task uses the <code>awsvpc</code> network
mode.
</p>

@return 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