public String getStackName() {
    return stackName;
  }
Gets the name of the stack, such as "HDP".

@return the name of the stack (never {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StackEntity.java