public void setCardinality(String cardinality) {
    if (cardinality != null) {
      this.cardinality = cardinality;
    }
  }
Set the cardinality value for this host group.

@param cardinality cardinality value
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupEntity.java