public RegisterTaskDefinitionRequest withIpcMode(String ipcMode) {
        setIpcMode(ipcMode);
        return this;
    }
<p>
The IPC resource namespace to use for the containers in the task. The valid values are <code>host</code>,
<code>task</code>, or <code>none</code>. If <code>host</code> is specified, then all containers within the tasks
that specified the <code>host</code> IPC mode on the same container instance share the same IPC resources with
the host Amazon EC2 instance. If <code>task</code> is specified, all containers within the specified task share
the same IPC resources. If <code>none</code> is specified, then IPC resources within the containers of a task are
private and not shared with other containers in a task or on the container instance. If no value is specified,
then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more
information, see <a href="https://docs.docker.com/engine/reference/run/#ipc-settings---ipc">IPC settings</a> in
the <i>Docker run reference</i>.
</p>
<p>
If the <code>host</code> IPC mode is used, be aware that there is a heightened risk of undesired IPC namespace
expose. For more information, see <a href="https://docs.docker.com/engine/security/security/">Docker
security</a>.
</p>
<p>
If you are setting namespaced kernel parameters using <code>systemControls</code> for the containers in the task,
the following will apply to your IPC resource namespace. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html">System
Controls</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>
<ul>
<li>
<p>
For tasks that use the <code>host</code> IPC mode, IPC namespace related <code>systemControls</code> are not
supported.
</p>
</li>
<li>
<p>
For tasks that use the <code>task</code> IPC mode, IPC namespace related <code>systemControls</code> will apply
to all containers within a task.
</p>
</li>
</ul>
<note>
<p>
This parameter is not supported for Windows containers or tasks run on Fargate.
</p>
</note>

@param ipcMode
       The IPC resource namespace to use for the containers in the task. The valid values are <code>host</code>,
       <code>task</code>, or <code>none</code>. If <code>host</code> is specified, then all containers within the
       tasks that specified the <code>host</code> IPC mode on the same container instance share the same IPC
       resources with the host Amazon EC2 instance. If <code>task</code> is specified, all containers within the
       specified task share the same IPC resources. If <code>none</code> is specified, then IPC resources within
       the containers of a task are private and not shared with other containers in a task or on the container
       instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon
       setting on the container instance. For more information, see <a
       href="https://docs.docker.com/engine/reference/run/#ipc-settings---ipc">IPC settings</a> in the <i>Docker
       run reference</i>.</p>
       <p>
       If the <code>host</code> IPC mode is used, be aware that there is a heightened risk of undesired IPC
       namespace expose. For more information, see <a
       href="https://docs.docker.com/engine/security/security/">Docker security</a>.
       </p>
       <p>
       If you are setting namespaced kernel parameters using <code>systemControls</code> for the containers in
       the task, the following will apply to your IPC resource namespace. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html">System
       Controls</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
       </p>
       <ul>
       <li>
       <p>
       For tasks that use the <code>host</code> IPC mode, IPC namespace related <code>systemControls</code> are
       not supported.
       </p>
       </li>
       <li>
       <p>
       For tasks that use the <code>task</code> IPC mode, IPC namespace related <code>systemControls</code> will
       apply to all containers within a task.
       </p>
       </li>
       </ul>
       <note>
       <p>
       This parameter is not supported for Windows containers or tasks run on Fargate.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see IpcMode
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/RegisterTaskDefinitionRequest.java