Class TaskDefinition
- java.lang.Object
-
- com.snowflake.connectors.common.task.TaskDefinition
-
public class TaskDefinition extends Object
Class representing a Snowflake task creation definition.
-
-
Constructor Summary
Constructors Constructor Description TaskDefinition(TaskProperties properties)
Creates a newTaskDefinition
.TaskDefinition(TaskProperties properties, TaskParameters parameters)
Creates a newTaskDefinition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<TaskParameters>
parameters()
Returns the additional task parameters.TaskProperties
properties()
Returns the task properties.
-
-
-
Constructor Detail
-
TaskDefinition
public TaskDefinition(TaskProperties properties)
Creates a newTaskDefinition
.- Parameters:
properties
- task properties
-
TaskDefinition
public TaskDefinition(TaskProperties properties, TaskParameters parameters)
Creates a newTaskDefinition
.- Parameters:
properties
- task propertiesparameters
- additional task parameters
-
-
Method Detail
-
properties
public TaskProperties properties()
Returns the task properties.- Returns:
- task properties
-
parameters
public Optional<TaskParameters> parameters()
Returns the additional task parameters.- Returns:
- additional task parameters
-
-