code: public ListAcceptedPortfolioSharesResult withPortfolioDetails(PortfolioDetail... portfolioDetails) {
          if (this.portfolioDetails == null) {
              setPortfolioDetails(new java.util.ArrayList<PortfolioDetail>(portfolioDetails.length));
          }
          for (PortfolioDetail ele : portfolioDetails) {
              this.portfolioDetails.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the portfolios.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPortfolioDetails(java.util.Collection)} or {@link #withPortfolioDetails(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param portfolioDetails
  Information about the portfolios.
  @return Returns a reference to this object so that method calls can be chained together.