code: public ContainerOverride withEnvironment(KeyValuePair... environment) {
          if (this.environment == null) {
              setEnvironment(new com.amazonaws.internal.SdkInternalList<KeyValuePair>(environment.length));
          }
          for (KeyValuePair ele : environment) {
              this.environment.add(ele);
          }
          return this;
      }
docs: <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>
  <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 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.