public ContainerDefinition withCommand(String... command) {
        if (this.command == null) {
            setCommand(new java.util.ArrayList<String>(command.length));
        }
        for (String ele : command) {
            this.command.add(ele);
        }
        return this;
    }
<p>
A command that's passed to the container on startup. Each argument for the command is an additional string in the
array. See the <a href=
"https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html#ECS-Type-ContainerDefinition-command"
>ContainerDefinition::command</a> parameter in the <i>Amazon Elastic Container Service API reference.</i>
</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
       A command that's passed to the container on startup. Each argument for the command is an additional string
       in the array. See the <a href=
       "https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html#ECS-Type-ContainerDefinition-command"
       >ContainerDefinition::command</a> parameter in the <i>Amazon Elastic Container Service API reference.</i>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/ContainerDefinition.java