public ContainerDetail withLogConfiguration(LogConfiguration logConfiguration) {
        setLogConfiguration(logConfiguration);
        return this;
    }
<p>
The log configuration specification for the container.
</p>
<p>
This parameter maps to <code>LogConfig</code> in the <a
href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a
href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--log-driver</code> option
to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. By default, containers use the same
logging driver that the Docker daemon uses. However, the container might use a different logging driver than the
Docker daemon by specifying a log driver with this parameter in the container definition. To use a different
logging driver for a container, the log system must be configured properly on the container instance. Or,
alternatively, it must be configured on a different log server for remote logging options. For more information
on the options for different supported log drivers, see <a
href="https://docs.docker.com/engine/admin/logging/overview/">Configure logging drivers</a> in the Docker
documentation.
</p>
<note>
<p>
Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the <a href=
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html"
>LogConfiguration</a> data type). Additional log drivers might be available in future releases of the Amazon ECS
container agent.
</p>
</note>
<p>
This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the
Docker Remote API version on your container instance, log in to your container instance and run the following
command: <code>sudo docker version | grep "Server API version"</code>
</p>
<note>
<p>
The Amazon ECS container agent running on a container instance must register the logging drivers available on
that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed
on that instance can use these log configuration options. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container
agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>
</note>

@param logConfiguration
       The log configuration specification for the container.</p>
       <p>
       This parameter maps to <code>LogConfig</code> in the <a
       href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the
       <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the
       <code>--log-driver</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
       run</a>. By default, containers use the same logging driver that the Docker daemon uses. However, the
       container might use a different logging driver than the Docker daemon by specifying a log driver with this
       parameter in the container definition. To use a different logging driver for a container, the log system
       must be configured properly on the container instance. Or, alternatively, it must be configured on a
       different log server for remote logging options. For more information on the options for different
       supported log drivers, see <a href="https://docs.docker.com/engine/admin/logging/overview/">Configure
       logging drivers</a> in the Docker documentation.
       </p>
       <note>
       <p>
       Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the <a
       href=
       "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html"
       >LogConfiguration</a> data type). Additional log drivers might be available in future releases of the
       Amazon ECS container agent.
       </p>
       </note>
       <p>
       This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To
       check the Docker Remote API version on your container instance, log in to your container instance and run
       the following command: <code>sudo docker version | grep "Server API version"</code>
       </p>
       <note>
       <p>
       The Amazon ECS container agent running on a container instance must register the logging drivers available
       on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before
       containers placed on that instance can use these log configuration options. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS
       container agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/ContainerDetail.java