Class PauseInstanceHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.api.PauseInstanceHandlerBuilder
-
public class PauseInstanceHandlerBuilder extends Object
Builder for thePauseInstanceHandler
.Allows for customization of the following handler components:
-
-
Constructor Summary
Constructors Constructor Description PauseInstanceHandlerBuilder(Session session)
Creates a newPauseInstanceHandlerBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PauseInstanceHandler
build()
Builds a new handler instance.PauseInstanceHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.
-
-
-
Constructor Detail
-
PauseInstanceHandlerBuilder
public PauseInstanceHandlerBuilder(Session session)
Creates a newPauseInstanceHandlerBuilder
.The properties of this builder are initialised with:
ConnectorErrorHelper
built usingbuildDefault
- Parameters:
session
- Snowpark session object- Throws:
NullPointerException
- if the provided session object is null
-
-
Method Detail
-
withErrorHelper
public PauseInstanceHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public PauseInstanceHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-