Class UpdateWarehouseHandlerTestBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
-
- com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerTestBuilder
-
public class UpdateWarehouseHandlerTestBuilder extends com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
Test builder for theUpdateWarehouseHandler
.Allows for customization of the following handler components:
UpdateWarehouseInputValidator
UpdateWarehouseCallback
UpdateWarehouseSdkCallback
ConnectorErrorHelper
ConnectorStatusService
ConnectorConfigurationService
-
-
Constructor Summary
Constructors Constructor Description UpdateWarehouseHandlerTestBuilder()
Creates a new, emptyUpdateWarehouseHandlerTestBuilder
.UpdateWarehouseHandlerTestBuilder(Session session)
Creates a newUpdateWarehouseHandlerTestBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateWarehouseHandlerTestBuilder
withCallback(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseCallback callback)
UpdateWarehouseHandlerTestBuilder
withConnectorConfigurationService(com.snowflake.connectors.application.configuration.connector.ConnectorConfigurationService connectorConfigurationService)
Sets the connector configuration service used to build the handler instance.UpdateWarehouseHandlerTestBuilder
withConnectorStatusService(com.snowflake.connectors.application.status.ConnectorStatusService connectorStatusService)
Sets the connector status service used to build the handler instance.UpdateWarehouseHandlerTestBuilder
withErrorHelper(com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper errorHelper)
UpdateWarehouseHandlerTestBuilder
withInputValidator(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseInputValidator inputValidator)
UpdateWarehouseHandlerTestBuilder
withSdkCallback(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseSdkCallback sdkCallback)
Sets the sdk callback used to build the handler instance.
-
-
-
Constructor Detail
-
UpdateWarehouseHandlerTestBuilder
public UpdateWarehouseHandlerTestBuilder(Session session)
Creates a newUpdateWarehouseHandlerTestBuilder
.The properties of this builder are initialised with:
- a default implementation of
UpdateWarehouseInputValidator
- a default implementation of
UpdateWarehouseCallback
- a default implementation of
UpdateWarehouseSdkCallback
ConnectorErrorHelper
built usingbuildDefault
- a default implementation of
ConnectorStatusService
- a default implementation of
ConnectorConfigurationService
- Parameters:
session
- Snowpark session object- Throws:
NullPointerException
- if the provided session object is null
- a default implementation of
-
UpdateWarehouseHandlerTestBuilder
public UpdateWarehouseHandlerTestBuilder()
Creates a new, emptyUpdateWarehouseHandlerTestBuilder
.Properties of the new builder instance must be fully customized before a handler instance can be built.
-
-
Method Detail
-
withInputValidator
public UpdateWarehouseHandlerTestBuilder withInputValidator(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseInputValidator inputValidator)
- Overrides:
withInputValidator
in classcom.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
-
withCallback
public UpdateWarehouseHandlerTestBuilder withCallback(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseCallback callback)
- Overrides:
withCallback
in classcom.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
-
withSdkCallback
public UpdateWarehouseHandlerTestBuilder withSdkCallback(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseSdkCallback sdkCallback)
Sets the sdk callback used to build the handler instance.- Parameters:
sdkCallback
- warehouse update sdk callback- Returns:
- this builder
-
withErrorHelper
public UpdateWarehouseHandlerTestBuilder withErrorHelper(com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper errorHelper)
- Overrides:
withErrorHelper
in classcom.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
-
withConnectorStatusService
public UpdateWarehouseHandlerTestBuilder withConnectorStatusService(com.snowflake.connectors.application.status.ConnectorStatusService connectorStatusService)
Sets the connector status service used to build the handler instance.- Parameters:
connectorStatusService
- connector status service- Returns:
- this builder
-
withConnectorConfigurationService
public UpdateWarehouseHandlerTestBuilder withConnectorConfigurationService(com.snowflake.connectors.application.configuration.connector.ConnectorConfigurationService connectorConfigurationService)
Sets the connector configuration service used to build the handler instance.- Parameters:
connectorConfigurationService
- connector configuration service- Returns:
- this builder
-
-