code: public FilterLogEventsRequest withLogStreamNames(String... logStreamNames) {
          if (this.logStreamNames == null) {
              setLogStreamNames(new com.amazonaws.internal.SdkInternalList<String>(logStreamNames.length));
          }
          for (String ele : logStreamNames) {
              this.logStreamNames.add(ele);
          }
          return this;
      }
docs: <p>
  Filters the results to only logs from the log streams in this list.
  </p>
  <p>
  If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>, the action
  returns an <code>InvalidParameterException</code> error.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLogStreamNames(java.util.Collection)} or {@link #withLogStreamNames(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param logStreamNames
  Filters the results to only logs from the log streams in this list.</p>
  <p>
  If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>, the
  action returns an <code>InvalidParameterException</code> error.
  @return Returns a reference to this object so that method calls can be chained together.