public void setRequired(Boolean required) {
    this.required = required;
  }
Set whether the service requires credential store

@param required - true, false, null.
ambari-server/src/main/java/org/apache/ambari/server/state/CredentialStoreInfo.java