public ProjectEnvironment withEnvironmentVariables(EnvironmentVariable... environmentVariables) {
        if (this.environmentVariables == null) {
            setEnvironmentVariables(new java.util.ArrayList<EnvironmentVariable>(environmentVariables.length));
        }
        for (EnvironmentVariable ele : environmentVariables) {
            this.environmentVariables.add(ele);
        }
        return this;
    }
<p>
A set of environment variables to make available to builds for this build project.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEnvironmentVariables(java.util.Collection)} or {@link #withEnvironmentVariables(java.util.Collection)}
if you want to override the existing values.
</p>

@param environmentVariables
       A set of environment variables to make available to builds for this build project.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ProjectEnvironment.java