Class UpdateWarehouseHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
-
public class UpdateWarehouseHandlerBuilder extends Object
Builder for theUpdateWarehouseHandler.Allows for customization of the following handler components:
-
-
Field Summary
Fields Modifier and Type Field Description protected UpdateWarehouseCallbackcallbackprotected ConnectorConfigurationServiceconnectorConfigurationServiceprotected ConnectorStatusServiceconnectorStatusServiceprotected ConnectorErrorHelpererrorHelperSeeConnectorErrorHelper.protected UpdateWarehouseInputValidatorinputValidatorprotected UpdateWarehouseSdkCallbacksdkCallback
-
Constructor Summary
Constructors Constructor Description UpdateWarehouseHandlerBuilder(Session session)Creates a newUpdateWarehouseHandlerBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateWarehouseHandlerbuild()Builds a new handler instance.UpdateWarehouseHandlerBuilderwithCallback(UpdateWarehouseCallback callback)Sets the callback used to build the handler instance.UpdateWarehouseHandlerBuilderwithErrorHelper(ConnectorErrorHelper errorHelper)Sets the error helper used to build the handler instance.UpdateWarehouseHandlerBuilderwithInputValidator(UpdateWarehouseInputValidator inputValidator)Sets the input validator used to build the handler instance.
-
-
-
Field Detail
-
inputValidator
protected UpdateWarehouseInputValidator inputValidator
-
callback
protected UpdateWarehouseCallback callback
-
sdkCallback
protected UpdateWarehouseSdkCallback sdkCallback
-
errorHelper
protected ConnectorErrorHelper errorHelper
SeeConnectorErrorHelper.
-
connectorStatusService
protected ConnectorStatusService connectorStatusService
-
connectorConfigurationService
protected ConnectorConfigurationService connectorConfigurationService
-
-
Constructor Detail
-
UpdateWarehouseHandlerBuilder
public UpdateWarehouseHandlerBuilder(Session session)
Creates a newUpdateWarehouseHandlerBuilder.The properties of this builder are initialised with:
- a default implementation of
UpdateWarehouseInputValidator - a default implementation of
UpdateWarehouseCallback ConnectorErrorHelperbuilt usingbuildDefault
- Parameters:
session- Snowpark session object- Throws:
NullPointerException- if the provided session object is null
- a default implementation of
-
-
Method Detail
-
withInputValidator
public UpdateWarehouseHandlerBuilder withInputValidator(UpdateWarehouseInputValidator inputValidator)
Sets the input validator used to build the handler instance.- Parameters:
inputValidator- warehouse update input validator- Returns:
- this builder
-
withCallback
public UpdateWarehouseHandlerBuilder withCallback(UpdateWarehouseCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback- warehouse update callback- Returns:
- this builder
-
withErrorHelper
public UpdateWarehouseHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper- connector error helper- Returns:
- this builder
-
build
public UpdateWarehouseHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException- if any property for the new handler is null
-
-