public ContainerDefinition withFirelensConfiguration(FirelensConfiguration firelensConfiguration) {
        setFirelensConfiguration(firelensConfiguration);
        return this;
    }
<p>
The FireLens configuration for the container. This is used to specify and configure a log router for container
logs. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html">Custom Log Routing</a> in
the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param firelensConfiguration
       The FireLens configuration for the container. This is used to specify and configure a log router for
       container logs. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html">Custom Log
       Routing</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
@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/ContainerDefinition.java