Ejemplo n.º 1
0
 /**
  * The Docker networking mode to use for the containers in the task. The valid values are <code>
  * none</code>, <code>bridge</code>, and <code>host</code>.
  *
  * <p>If the network mode is <code>none</code>, the containers do not have external connectivity.
  * The default Docker network mode is <code>bridge</code>. The <code>host</code> network mode
  * offers the highest networking performance for containers because it uses the host network stack
  * instead of the virtualized network stack provided by the <code>bridge</code> mode.
  *
  * <p>For more information, see <a
  * href="https://docs.docker.com/engine/reference/run/#network-settings" >Network settings</a> in
  * the <i>Docker run reference</i>.
  *
  * @param networkMode The Docker networking mode to use for the containers in the task. The valid
  *     values are <code>none</code>, <code>bridge</code>, and <code>host</code>.
  *     <p>If the network mode is <code>none</code>, the containers do not have external
  *     connectivity. The default Docker network mode is <code>bridge</code>. The <code>host</code>
  *     network mode offers the highest networking performance for containers because it uses the
  *     host network stack instead of the virtualized network stack provided by the <code>bridge
  *     </code> mode.
  *     <p>For more information, see <a href=
  *     "https://docs.docker.com/engine/reference/run/#network-settings" >Network settings</a> in
  *     the <i>Docker run reference</i>.
  * @return Returns a reference to this object so that method calls can be chained together.
  * @see NetworkMode
  */
 public TaskDefinition withNetworkMode(NetworkMode networkMode) {
   setNetworkMode(networkMode);
   return this;
 }