code: public GenericAttachment withButtons(Button... buttons) {
          if (this.buttons == null) {
              setButtons(new java.util.ArrayList<Button>(buttons.length));
          }
          for (Button ele : buttons) {
              this.buttons.add(ele);
          }
          return this;
      }
docs: <p>
  The list of options to show to the user.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setButtons(java.util.Collection)} or {@link #withButtons(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param buttons
  The list of options to show to the user.
  @return Returns a reference to this object so that method calls can be chained together.