public ContainerDefinition withCommand(String... command) {
        if (this.command == null) {
            setCommand(new com.amazonaws.internal.SdkInternalList<String>(command.length));
        }
        for (String ele : command) {
            this.command.add(ele);
        }
        return this;
    }
<p>
The command that's passed to the container. This parameter maps to <code>Cmd</code> in the <a
href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section of the
<a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the <code>COMMAND</code> parameter
to <a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. For more
information, see <a
href="https://docs.docker.com/engine/reference/builder/#cmd">https://docs.docker.com/engine/reference
/builder/#cmd</a>. If there are multiple arguments, each argument is a separated string in the array.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCommand(java.util.Collection)} or {@link #withCommand(java.util.Collection)} if you want to override
the existing values.
</p>

@param command
       The command that's passed to the container. This parameter maps to <code>Cmd</code> in the <a
       href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section
       of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
       <code>COMMAND</code> parameter to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. For more
       information, see <a
       href="https://docs.docker.com/engine/reference/builder/#cmd">https://docs.docker.com/engine
       /reference/builder/#cmd</a>. If there are multiple arguments, each argument is a separated string in the
       array.
@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