public void setEnabled(boolean enabled) {
    this.enabled = enabled ? Integer.valueOf(1) : Integer.valueOf(0);
  }
Sets whether this alert definition is enabled.

@param enabled {@code true} if this alert definition is enabled, {@code false}
               otherwise.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java