public void setDirection(Direction direction) {
    this.direction = direction;
  }
@param direction the direction of the upgrade
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java