public ContainerDetail withEnvironment(java.util.Collection<KeyValuePair> environment) {
        setEnvironment(environment);
        return this;
    }
<p>
The environment variables to pass to a container.
</p>
<note>
<p>
Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention is reserved for
variables that Batch sets.
</p>
</note>

@param environment
       The environment variables to pass to a container.</p> <note>
       <p>
       Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention is reserved for
       variables that Batch sets.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/ContainerDetail.java