docs: public AddResourcePermissionsResult withShareResults(ShareResult... shareResults) {
          if (this.shareResults == null) {
              setShareResults(new java.util.ArrayList<ShareResult>(shareResults.length));
          }
          for (ShareResult ele : shareResults) {
              this.shareResults.add(ele);
          }
          return this;
      }