public static class MediaWorkflowTask.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MediaWorkflowTask |
build() |
MediaWorkflowTask.Builder |
copy(MediaWorkflowTask model) |
MediaWorkflowTask.Builder |
enableParameterReference(String enableParameterReference)
Allows this task to be conditionally enabled.
|
MediaWorkflowTask.Builder |
enableWhenReferencedParameterEquals(Map<String,Object> enableWhenReferencedParameterEquals)
Used in conjunction with enableParameterReference to conditionally enable a task.
|
MediaWorkflowTask.Builder |
key(String key)
A unique identifier for this task within its workflow.
|
MediaWorkflowTask.Builder |
parameters(Map<String,Object> parameters)
Data specifiying how this task is to be run.
|
MediaWorkflowTask.Builder |
prerequisites(List<String> prerequisites)
Keys to the other tasks in this workflow that must be completed before execution of this
task can begin.
|
MediaWorkflowTask.Builder |
type(String type)
The type of process to run at this task.
|
MediaWorkflowTask.Builder |
version(Long version)
The version of the MediaWorkflowTaskDeclaration.
|
public MediaWorkflowTask.Builder type(String type)
The type of process to run at this task. Refers to the name of a MediaWorkflowTaskDeclaration.
type
- the value to setpublic MediaWorkflowTask.Builder version(Long version)
The version of the MediaWorkflowTaskDeclaration.
version
- the value to setpublic MediaWorkflowTask.Builder key(String key)
A unique identifier for this task within its workflow. Keys are used to reference a task within workflows and MediaWorkflowJobs. Tasks are referenced as prerequisites and to track output and state.
key
- the value to setpublic MediaWorkflowTask.Builder prerequisites(List<String> prerequisites)
Keys to the other tasks in this workflow that must be completed before execution of this task can begin.
prerequisites
- the value to setpublic MediaWorkflowTask.Builder enableParameterReference(String enableParameterReference)
Allows this task to be conditionally enabled. If no value or a blank value is given, the task is unconditionally enbled. Otherwise the given string specifies a parameter of the job created for this task’s workflow using the JSON pointer syntax. The JSON pointer is validated when a job is created from the workflow of this task.
enableParameterReference
- the value to setpublic MediaWorkflowTask.Builder enableWhenReferencedParameterEquals(Map<String,Object> enableWhenReferencedParameterEquals)
Used in conjunction with enableParameterReference to conditionally enable a task. When a job is created from the workflow of this task, the task will only be enabled if the value of the parameter specified by enableParameterReference is equal to the value of this property. This property must be prenset if and only if a enableParameterReference is given. The value is a JSON node.
enableWhenReferencedParameterEquals
- the value to setpublic MediaWorkflowTask.Builder parameters(Map<String,Object> parameters)
Data specifiying how this task is to be run. The data is a JSON object that must conform to the JSON Schema specified by the parameters of the MediaWorkflowTaskDeclaration this task references. The parameters may contain values or references to other parameters.
parameters
- the value to setpublic MediaWorkflowTask build()
public MediaWorkflowTask.Builder copy(MediaWorkflowTask model)
Copyright © 2016–2024. All rights reserved.