toValue method
Implementation
String toValue() {
switch (this) {
case ConnectionPropertyKey.host:
return 'HOST';
case ConnectionPropertyKey.port:
return 'PORT';
case ConnectionPropertyKey.username:
return 'USERNAME';
case ConnectionPropertyKey.password:
return 'PASSWORD';
case ConnectionPropertyKey.encryptedPassword:
return 'ENCRYPTED_PASSWORD';
case ConnectionPropertyKey.jdbcDriverJarUri:
return 'JDBC_DRIVER_JAR_URI';
case ConnectionPropertyKey.jdbcDriverClassName:
return 'JDBC_DRIVER_CLASS_NAME';
case ConnectionPropertyKey.jdbcEngine:
return 'JDBC_ENGINE';
case ConnectionPropertyKey.jdbcEngineVersion:
return 'JDBC_ENGINE_VERSION';
case ConnectionPropertyKey.configFiles:
return 'CONFIG_FILES';
case ConnectionPropertyKey.instanceId:
return 'INSTANCE_ID';
case ConnectionPropertyKey.jdbcConnectionUrl:
return 'JDBC_CONNECTION_URL';
case ConnectionPropertyKey.jdbcEnforceSsl:
return 'JDBC_ENFORCE_SSL';
case ConnectionPropertyKey.customJdbcCert:
return 'CUSTOM_JDBC_CERT';
case ConnectionPropertyKey.skipCustomJdbcCertValidation:
return 'SKIP_CUSTOM_JDBC_CERT_VALIDATION';
case ConnectionPropertyKey.customJdbcCertString:
return 'CUSTOM_JDBC_CERT_STRING';
case ConnectionPropertyKey.connectionUrl:
return 'CONNECTION_URL';
case ConnectionPropertyKey.kafkaBootstrapServers:
return 'KAFKA_BOOTSTRAP_SERVERS';
case ConnectionPropertyKey.kafkaSslEnabled:
return 'KAFKA_SSL_ENABLED';
case ConnectionPropertyKey.kafkaCustomCert:
return 'KAFKA_CUSTOM_CERT';
case ConnectionPropertyKey.kafkaSkipCustomCertValidation:
return 'KAFKA_SKIP_CUSTOM_CERT_VALIDATION';
case ConnectionPropertyKey.secretId:
return 'SECRET_ID';
case ConnectionPropertyKey.connectorUrl:
return 'CONNECTOR_URL';
case ConnectionPropertyKey.connectorType:
return 'CONNECTOR_TYPE';
case ConnectionPropertyKey.connectorClassName:
return 'CONNECTOR_CLASS_NAME';
}
}