Class UpdateConnectionConfigurationHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.connection.UpdateConnectionConfigurationHandlerBuilder
-
public class UpdateConnectionConfigurationHandlerBuilder extends Object
Builder for theUpdateConnectionConfigurationHandler
.Allows for customization of the following handler components:
-
-
Method Summary
-
-
-
Method Detail
-
withInputValidator
public UpdateConnectionConfigurationHandlerBuilder withInputValidator(ConnectionConfigurationInputValidator inputValidator)
Sets the input validator used to build the handler instance.- Parameters:
inputValidator
- connection configuration input validator- Returns:
- this builder
-
withDraftCallback
public UpdateConnectionConfigurationHandlerBuilder withDraftCallback(ConnectionConfigurationCallback draftCallback)
Sets the draft callback used to build the handler instance.- Parameters:
draftCallback
- connector configuration callback- Returns:
- this builder
-
withDraftConnectionValidator
public UpdateConnectionConfigurationHandlerBuilder withDraftConnectionValidator(DraftConnectionValidator draftConnectionValidator)
Sets the draft connection validator used to build the handler instance.- Parameters:
draftConnectionValidator
- draft connection validator- Returns:
- this builder
-
withCallback
public UpdateConnectionConfigurationHandlerBuilder withCallback(ConnectionConfigurationCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback
- connector configuration callback- Returns:
- this builder
-
withConnectionValidator
public UpdateConnectionConfigurationHandlerBuilder withConnectionValidator(ConnectionValidator connectionValidator)
Sets the connection validator used to build the handler instance.- Parameters:
connectionValidator
- connection validator- Returns:
- this builder
-
withErrorHelper
public UpdateConnectionConfigurationHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public UpdateConnectionConfigurationHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-