public EcsContainerOverride withEnvironment(java.util.Collection<EcsEnvironmentVariable> environment) {
        setEnvironment(environment);
        return this;
    }
<p>
The environment variables to send to the container. You can add new environment variables, which are added to the
container at launch, or you can override the existing environment variables from the Docker image or the task
definition. You must also specify a container name.
</p>

@param environment
       The environment variables to send to the container. You can add new environment variables, which are added
       to the container at launch, or you can override the existing environment variables from the Docker image
       or the task definition. You must also specify a container name.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pipes/src/main/java/com/amazonaws/services/pipes/model/EcsContainerOverride.java