public CreateContainerGroupDefinitionRequest withContainerDefinitions(ContainerDefinitionInput... containerDefinitions) {
        if (this.containerDefinitions == null) {
            setContainerDefinitions(new java.util.ArrayList<ContainerDefinitionInput>(containerDefinitions.length));
        }
        for (ContainerDefinitionInput ele : containerDefinitions) {
            this.containerDefinitions.add(ele);
        }
        return this;
    }
<p>
Definitions for all containers in this group. Each container definition identifies the container image and
specifies configuration settings for the container. See the <a
href="https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet.html"> Container fleet
design guide</a> for container guidelines.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setContainerDefinitions(java.util.Collection)} or {@link #withContainerDefinitions(java.util.Collection)}
if you want to override the existing values.
</p>

@param containerDefinitions
       Definitions for all containers in this group. Each container definition identifies the container image and
       specifies configuration settings for the container. See the <a
       href="https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet.html"> Container
       fleet design guide</a> for container guidelines.
@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/CreateContainerGroupDefinitionRequest.java