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 ResetConfigurationCallback
callback
protected ConnectorStatusService
connectorStatusService
protected ConnectorErrorHelper
errorHelper
SeeConnectorErrorHelper
.protected ResetConfigurationSdkCallback
sdkCallback
protected ResetConfigurationValidator
validator
-
Constructor Summary
Constructors Constructor Description ResetConfigurationHandlerBuilder(Session session)
Creates a newResetConfigurationHandlerBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResetConfigurationHandler
build()
Builds a new handler instance.ResetConfigurationHandlerBuilder
withCallback(ResetConfigurationCallback callback)
Sets the callback used to build the handler instance.ResetConfigurationHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.ResetConfigurationHandlerBuilder
withValidator(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
ConnectorErrorHelper
built 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
-
-