code: public RepositoryTrigger withBranches(String... branches) {
          if (this.branches == null) {
              setBranches(new java.util.ArrayList<String>(branches.length));
          }
          for (String ele : branches) {
              this.branches.add(ele);
          }
          return this;
      }
docs: <p>
  The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will
  apply to all branches.
  </p>
  <note>
  <p>
  While no content is required in the array, you must include the array itself.
  </p>
  </note>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBranches(java.util.Collection)} or {@link #withBranches(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param branches
  The branches that will be included in the trigger configuration. If you specify an empty array, the
  trigger will apply to all branches.</p> <note>
  <p>
  While no content is required in the array, you must include the array itself.
  </p>
  @return Returns a reference to this object so that method calls can be chained together.