src/main/java/com/microsoft/azure/cosmosdb/kafka/connect/Setting.java
public void toConfigDef(ConfigDef configDef) {
        ConfigDef.Validator validator = (name, value) -> {
            if (!this.getName().equals(name)) {
                throw new IllegalStateException("Validator from setting" + getName() + " applied to incorrect setting: " + name);
            } else if (!isValid(value)) {
                throw new ConfigException(name, value);
            }
        };

        configDef.define(getName(), getKafkaConfigType(), getDefaultValue().orElse(null), validator, getKafkaConfigImportance(), getDocumentation());
    }
/**
     * Adds the setting to a Kafka configdef. Does not modify the setting.
     *
     * @param configDef The configDef to which the setting will be added
     */
Adds the setting to a Kafka configdef. Does not modify the setting.

@param configDef The configDef to which the setting will be added
Adds the setting to a Kafka configdef . Does not modify the setting . @param configDef The configDef to which the setting will be added
public void toConfigDef(ConfigDef configDef) {
        ConfigDef.Validator validator = (name, value) -> {
            if (!this.getName().equals(name)) {
                throw new IllegalStateException("Validator from setting" + getName() + " applied to incorrect setting: " + name);
            } else if (!isValid(value)) {
                throw new ConfigException(name, value);
            }
        };
        configDef.define(getName(), getKafkaConfigType(), getDefaultValue().orElse(null), validator, getKafkaConfigImportance(), getDocumentation());
    }
public void toConfigDef ( ConfigDef configDef ) { ConfigDef . Validator validator = ( name , value ) -> { if ( ! this . getName ( ) . equals ( name ) ) { throw new IllegalStateException ( "Validator from setting" + getName ( ) + " applied to incorrect setting: " + name ) ; } else if ( ! isValid ( value ) ) { throw new ConfigException ( name , value ) ; } } ; configDef . define ( getName ( ) , getKafkaConfigType ( ) , getDefaultValue ( ) . orElse ( null ) , validator , getKafkaConfigImportance ( ) , getDocumentation ( ) ) ; }
Adds the setting to a Kafka configdef.
Adds the setting to a Kafka configdef .