code: public GetUpgradeHistoryResult withUpgradeHistories(UpgradeHistory... upgradeHistories) {
          if (this.upgradeHistories == null) {
              setUpgradeHistories(new java.util.ArrayList<UpgradeHistory>(upgradeHistories.length));
          }
          for (UpgradeHistory ele : upgradeHistories) {
              this.upgradeHistories.add(ele);
          }
          return this;
      }
docs: <p>
  A list of <code> <a>UpgradeHistory</a> </code> objects corresponding to each Upgrade or Upgrade Eligibility Check
  performed on a domain returned as part of <code> <a>GetUpgradeHistoryResponse</a> </code> object.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setUpgradeHistories(java.util.Collection)} or {@link #withUpgradeHistories(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param upgradeHistories
  A list of <code> <a>UpgradeHistory</a> </code> objects corresponding to each Upgrade or Upgrade
  Eligibility Check performed on a domain returned as part of
  <code> <a>GetUpgradeHistoryResponse</a> </code> object.
  @return Returns a reference to this object so that method calls can be chained together.