public AwsEcsTaskDefinitionDetails withContainerDefinitions(AwsEcsTaskDefinitionContainerDefinitionsDetails... containerDefinitions) {
        if (this.containerDefinitions == null) {
            setContainerDefinitions(new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsDetails>(containerDefinitions.length));
        }
        for (AwsEcsTaskDefinitionContainerDefinitionsDetails ele : containerDefinitions) {
            this.containerDefinitions.add(ele);
        }
        return this;
    }
<p>
The container definitions that describe the containers that make up the task.
</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
       The container definitions that describe the containers that make up the task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionDetails.java