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