docs: public Handshake withResources(HandshakeResource... resources) {
          if (this.resources == null) {
              setResources(new java.util.ArrayList<HandshakeResource>(resources.length));
          }
          for (HandshakeResource ele : resources) {
              this.resources.add(ele);
          }
          return this;
      }