code: public PutLogEventsRequest withLogEvents(InputLogEvent... logEvents) {
          if (this.logEvents == null) {
              setLogEvents(new com.amazonaws.internal.SdkInternalList<InputLogEvent>(logEvents.length));
          }
          for (InputLogEvent ele : logEvents) {
              this.logEvents.add(ele);
          }
          return this;
      }
docs: <p>
  The log events.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLogEvents(java.util.Collection)} or {@link #withLogEvents(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param logEvents
  The log events.
  @return Returns a reference to this object so that method calls can be chained together.