Class ResumeInstanceHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.api.ResumeInstanceHandlerBuilder
-
public class ResumeInstanceHandlerBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description ResumeInstanceHandlerBuilder(Session session)
Creates a newResumeInstanceHandlerBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResumeInstanceHandler
build()
Builds a new handler instance.ResumeInstanceHandlerBuilder
withErrorHelper(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:
ConnectorErrorHelper
built 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
-
-