code: public ContainerDetail withEnvironment(KeyValuePair... environment) {
          if (this.environment == null) {
              setEnvironment(new java.util.ArrayList<KeyValuePair>(environment.length));
          }
          for (KeyValuePair ele : environment) {
              this.environment.add(ele);
          }
          return this;
      }
docs: <p>
  The environment variables to pass to a container.
  </p>
  <note>
  <p>
  Environment variables must not start with <code>AWS_BATCH</code>; this naming convention is reserved for
  variables that are set by the AWS Batch service.
  </p>
  </note>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEnvironment(java.util.Collection)} or {@link #withEnvironment(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param environment
  The environment variables to pass to a container.</p> <note>
  <p>
  Environment variables must not start with <code>AWS_BATCH</code>; this naming convention is reserved for
  variables that are set by the AWS Batch service.
  </p>
  @return Returns a reference to this object so that method calls can be chained together.