Class ConnectionConfigurationHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationHandlerBuilder
-
public class ConnectionConfigurationHandlerBuilder extends Object
Builder for theConnectionConfigurationHandler
.Allows for customization of the following handler components:
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionConfigurationHandler
build()
Builds a new handler instance.ConnectionConfigurationHandlerBuilder
withCallback(ConnectionConfigurationCallback callback)
Sets the callback used to build the handler instance.ConnectionConfigurationHandlerBuilder
withConnectionValidator(ConnectionValidator connectionValidator)
Sets the connection validator used to build the handler instance.ConnectionConfigurationHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.ConnectionConfigurationHandlerBuilder
withInputValidator(ConnectionConfigurationInputValidator inputValidator)
Sets the input validator used to build the handler instance.
-
-
-
Method Detail
-
withInputValidator
public ConnectionConfigurationHandlerBuilder withInputValidator(ConnectionConfigurationInputValidator inputValidator)
Sets the input validator used to build the handler instance.- Parameters:
inputValidator
- connection configuration input validator- Returns:
- this builder
-
withCallback
public ConnectionConfigurationHandlerBuilder withCallback(ConnectionConfigurationCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback
- connector configuration callback- Returns:
- this builder
-
withConnectionValidator
public ConnectionConfigurationHandlerBuilder withConnectionValidator(ConnectionValidator connectionValidator)
Sets the connection validator used to build the handler instance.- Parameters:
connectionValidator
- connection validator- Returns:
- this builder
-
withErrorHelper
public ConnectionConfigurationHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public ConnectionConfigurationHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-