public AwsEcsTaskDefinitionContainerDefinitionsDetails withEnvironmentFiles(
            AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails... environmentFiles) {
        if (this.environmentFiles == null) {
            setEnvironmentFiles(new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>(environmentFiles.length));
        }
        for (AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails ele : environmentFiles) {
            this.environmentFiles.add(ele);
        }
        return this;
    }
<p>
A list of files containing the environment variables to pass to a container.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEnvironmentFiles(java.util.Collection)} or {@link #withEnvironmentFiles(java.util.Collection)} if you
want to override the existing values.
</p>

@param environmentFiles
       A list of files containing the environment variables to pass to a container.
@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/AwsEcsTaskDefinitionContainerDefinitionsDetails.java