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