Class FinalizeConnectorHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.finalization.FinalizeConnectorHandlerBuilder
-
public class FinalizeConnectorHandlerBuilder extends Object
Builder for theFinalizeConnectorHandler
.Allows for customization of the following handler components:
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FinalizeConnectorHandler
build()
Builds a new handler instance.FinalizeConnectorHandlerBuilder
withCallback(FinalizeConnectorCallback callback)
Sets the callback used to build the handler instance.FinalizeConnectorHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.FinalizeConnectorHandlerBuilder
withInputValidator(FinalizeConnectorInputValidator inputValidator)
Sets the input validator used to build the handler instance.FinalizeConnectorHandlerBuilder
withSourceValidator(SourceValidator sourceValidator)
Sets the source validator used to build the handler instance.
-
-
-
Method Detail
-
withInputValidator
public FinalizeConnectorHandlerBuilder withInputValidator(FinalizeConnectorInputValidator inputValidator)
Sets the input validator used to build the handler instance.- Parameters:
inputValidator
- configuration finalization input validator- Returns:
- this builder
-
withSourceValidator
public FinalizeConnectorHandlerBuilder withSourceValidator(SourceValidator sourceValidator)
Sets the source validator used to build the handler instance.- Parameters:
sourceValidator
- source finalization input validator- Returns:
- this builder
-
withCallback
public FinalizeConnectorHandlerBuilder withCallback(FinalizeConnectorCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback
- configuration finalization callback- Returns:
- this builder
-
withErrorHelper
public FinalizeConnectorHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public FinalizeConnectorHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-