public ContainerDefinitionInput withDependsOn(java.util.Collection<ContainerDependency> dependsOn) {
        setDependsOn(dependsOn);
        return this;
    }
<p>
Sets up dependencies between this container and the status of other containers in the same container group. A
container can have dependencies on multiple different containers.
</p>
<p>
You can use dependencies to establish a startup/shutdown sequence across the container group. A container startup
dependency is reversed on shutdown.
</p>
<p>
For example, you might specify that SideCarContainerB has a <code>START</code> dependency on SideCarContainerA.
This dependency means that SideCarContainerB can't start until after SideCarContainerA has started. This
dependency is reversed on shutdown, which means that SideCarContainerB must shut down before SideCarContainerA
can shut down.
</p>

@param dependsOn
       Sets up dependencies between this container and the status of other containers in the same container
       group. A container can have dependencies on multiple different containers. </p>
       <p>
       You can use dependencies to establish a startup/shutdown sequence across the container group. A container
       startup dependency is reversed on shutdown.
       </p>
       <p>
       For example, you might specify that SideCarContainerB has a <code>START</code> dependency on
       SideCarContainerA. This dependency means that SideCarContainerB can't start until after SideCarContainerA
       has started. This dependency is reversed on shutdown, which means that SideCarContainerB must shut down
       before SideCarContainerA can shut down.
@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/ContainerDefinitionInput.java