code: public ReorderReceiptRuleSetRequest withRuleNames(String... ruleNames) {
          if (this.ruleNames == null) {
              setRuleNames(new com.amazonaws.internal.SdkInternalList<String>(ruleNames.length));
          }
          for (String ele : ruleNames) {
              this.ruleNames.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the specified receipt rule set's receipt rules in the order that you want to put them.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRuleNames(java.util.Collection)} or {@link #withRuleNames(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param ruleNames
  A list of the specified receipt rule set's receipt rules in the order that you want to put them.
  @return Returns a reference to this object so that method calls can be chained together.