public void setUpgradePacks(Map<String, UpgradePack> upgradePacks) {
    if (null != upgradePacks) {
      upgradePacks.values().forEach(pack -> {
        pack.setOwnerStackId(new StackId(this));
      });
    }
    this.upgradePacks = upgradePacks;
  }
Set upgrade packs.

@param upgradePacks map of upgrade packs
ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java