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