public Task withAttributes(java.util.Collection<Attribute> attributes) {
        setAttributes(attributes);
        return this;
    }
<p>
The attributes of the task
</p>

@param attributes
       The attributes of the task
@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