public void setAlertGroups(Set<AlertGroupEntity> alertGroups) {
    this.alertGroups = alertGroups;
  }
Sets the alert groups that this alert definition is associated with.

@param alertGroups the groups, or {@code null} for none.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java