public void setRequired(boolean required) {
    this.required = (required ? 'Y' : 'N');
  }
Set the flag which indicate whether or not the parameter is required.

@param required  the required flag; true if the parameter is required
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewParameterEntity.java