code: public DescribeEventTopicsRequest withTopicNames(String... topicNames) {
          if (this.topicNames == null) {
              setTopicNames(new com.amazonaws.internal.SdkInternalList<String>(topicNames.length));
          }
          for (String ele : topicNames) {
              this.topicNames.add(ele);
          }
          return this;
      }
docs: <p>
  A list of SNS topic names for which to obtain the information. If this member is null, all associations for the
  specified Directory ID are returned.
  </p>
  <p>
  An empty list results in an <code>InvalidParameterException</code> being thrown.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTopicNames(java.util.Collection)} or {@link #withTopicNames(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param topicNames
  A list of SNS topic names for which to obtain the information. If this member is null, all associations
  for the specified Directory ID are returned.</p>
  <p>
  An empty list results in an <code>InvalidParameterException</code> being thrown.
  @return Returns a reference to this object so that method calls can be chained together.