code: public UpdateRegexPatternSetRequest withUpdates(RegexPatternSetUpdate... updates) {
          if (this.updates == null) {
              setUpdates(new java.util.ArrayList<RegexPatternSetUpdate>(updates.length));
          }
          for (RegexPatternSetUpdate ele : updates) {
              this.updates.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>RegexPatternSetUpdate</code> objects that you want to insert into or delete from a
  <a>RegexPatternSet</a>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setUpdates(java.util.Collection)} or {@link #withUpdates(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param updates
  An array of <code>RegexPatternSetUpdate</code> objects that you want to insert into or delete from a
  <a>RegexPatternSet</a>.
  @return Returns a reference to this object so that method calls can be chained together.