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