code: 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;
      }
docs: <p>
  The share results.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setShareResults(java.util.Collection)} or {@link #withShareResults(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param shareResults
  The share results.
  @return Returns a reference to this object so that method calls can be chained together.