public DeploymentCommand withArgs(java.util.Map<String, java.util.List<String>> args) {
        setArgs(args);
        return this;
    }
public DeploymentCommand withArgs ( java . util . Map < String , java . util . List < String > > args ) { setArgs ( args ) ; return this ; }
<p>
The arguments of those commands that take arguments. It should be set to a JSON object with the following format:
</p>
<p>
<code>{"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", ...], ...}</code>
</p>
<p>
The <code>update_dependencies</code> command takes two arguments:
</p>
<ul>
<li>
<p>
<code>upgrade_os_to</code> - Specifies the desired Amazon Linux version for instances whose OS you want to
upgrade, such as <code>Amazon Linux 2016.09</code>. You must also set the <code>allow_reboot</code> argument to
true.
</p>
</li>
<li>
<p>
<code>allow_reboot</code> - Specifies whether to allow AWS OpsWorks Stacks to reboot the instances if necessary,
after installing the updates. This argument can be set to either <code>true</code> or <code>false</code>. The
default value is <code>false</code>.
</p>
</li>
</ul>
<p>
For example, to upgrade an instance to Amazon Linux 2016.09, set <code>Args</code> to the following.
</p>
<p>
<code> { "upgrade_os_to":["Amazon Linux 2016.09"], "allow_reboot":["true"] } </code>
</p>

@param args
The arguments of those commands that take arguments. It should be set to a JSON object with the following
format:</p>
<p>
<code>{"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2", ...], ...}</code>
</p>
<p>
The <code>update_dependencies</code> command takes two arguments:
</p>
<ul>
<li>
<p>
<code>upgrade_os_to</code> - Specifies the desired Amazon Linux version for instances whose OS you want to
upgrade, such as <code>Amazon Linux 2016.09</code>. You must also set the <code>allow_reboot</code>
argument to true.
</p>
</li>
<li>
<p>
<code>allow_reboot</code> - Specifies whether to allow AWS OpsWorks Stacks to reboot the instances if
necessary, after installing the updates. This argument can be set to either <code>true</code> or
<code>false</code>. The default value is <code>false</code>.
</p>
</li>
</ul>
<p>
For example, to upgrade an instance to Amazon Linux 2016.09, set <code>Args</code> to the following.
</p>
<p>
<code> { "upgrade_os_to":["Amazon Linux 2016.09"], "allow_reboot":["true"] } </code>
@return Returns a reference to this object so that method calls can be chained together.