public RegisterTaskDefinitionRequest withContainerDefinitions(java.util.Collection<ContainerDefinition> containerDefinitions) {
        setContainerDefinitions(containerDefinitions);
        return this;
    }
<p>
A list of container definitions in JSON format that describe the different containers that make up your task.
</p>

@param containerDefinitions
       A list of container definitions in JSON format that describe the different containers that make up your
       task.
@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/RegisterTaskDefinitionRequest.java