Class ResetConfigurationHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.reset.ResetConfigurationHandlerBuilder
-
public class ResetConfigurationHandlerBuilder extends Object
Builder for theResetConfigurationHandler.Allows for customization of the following handler components:
-
-
Field Summary
Fields Modifier and Type Field Description protected ResetConfigurationCallbackcallbackprotected ConnectorStatusServiceconnectorStatusServiceprotected ConnectorErrorHelpererrorHelperSeeConnectorErrorHelper.protected ResetConfigurationSdkCallbacksdkCallbackprotected ResetConfigurationValidatorvalidator
-
Constructor Summary
Constructors Constructor Description ResetConfigurationHandlerBuilder(Session session)Creates a newResetConfigurationHandlerBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResetConfigurationHandlerbuild()Builds a new handler instance.ResetConfigurationHandlerBuilderwithCallback(ResetConfigurationCallback callback)Sets the callback used to build the handler instance.ResetConfigurationHandlerBuilderwithErrorHelper(ConnectorErrorHelper errorHelper)Sets the error helper used to build the handler instance.ResetConfigurationHandlerBuilderwithValidator(ResetConfigurationValidator validator)Sets the validator used to build the handler instance.
-
-
-
Field Detail
-
validator
protected ResetConfigurationValidator validator
-
sdkCallback
protected ResetConfigurationSdkCallback sdkCallback
-
callback
protected ResetConfigurationCallback callback
-
errorHelper
protected ConnectorErrorHelper errorHelper
SeeConnectorErrorHelper.
-
connectorStatusService
protected ConnectorStatusService connectorStatusService
-
-
Constructor Detail
-
ResetConfigurationHandlerBuilder
public ResetConfigurationHandlerBuilder(Session session)
Creates a newResetConfigurationHandlerBuilder.The properties of this builder are initialised with:
- a default implementation of
ResetConfigurationValidator - a default implementation of
ResetConfigurationCallback ConnectorErrorHelperbuilt usingbuildDefault
- Parameters:
session- Snowpark session object- Throws:
NullPointerException- if the provided session object is null
- a default implementation of
-
-
Method Detail
-
withValidator
public ResetConfigurationHandlerBuilder withValidator(ResetConfigurationValidator validator)
Sets the validator used to build the handler instance.- Parameters:
validator- configuration reset validator- Returns:
- this builder
-
withCallback
public ResetConfigurationHandlerBuilder withCallback(ResetConfigurationCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback- configuration reset callback- Returns:
- this builder
-
withErrorHelper
public ResetConfigurationHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper- connector error helper- Returns:
- this builder
-
build
public ResetConfigurationHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException- if any property for the new handler is null
-
-