public static class TaskOperator.Builder extends Object
Constructor and Description |
---|
Builder() |
public TaskOperator.Builder key(String key)
public TaskOperator.Builder modelVersion(String modelVersion)
public TaskOperator.Builder parentRef(ParentReference parentRef)
public TaskOperator.Builder name(String name)
public TaskOperator.Builder description(String description)
public TaskOperator.Builder objectVersion(Integer objectVersion)
public TaskOperator.Builder inputPorts(List<InputPort> inputPorts)
public TaskOperator.Builder outputPorts(List<TypedObject> outputPorts)
public TaskOperator.Builder objectStatus(Integer objectStatus)
public TaskOperator.Builder identifier(String identifier)
public TaskOperator.Builder parameters(List<Parameter> parameters)
public TaskOperator.Builder opConfigValues(ConfigValues opConfigValues)
public TaskOperator.Builder retryAttempts(Integer retryAttempts)
The number of retry attempts.
retryAttempts
- the value to setpublic TaskOperator.Builder retryDelayUnit(TaskOperator.RetryDelayUnit retryDelayUnit)
The unit for the retry delay.
retryDelayUnit
- the value to setpublic TaskOperator.Builder retryDelay(Double retryDelay)
The retry delay, the unit for measurement is in the property retry delay unit.
retryDelay
- the value to setpublic TaskOperator.Builder expectedDuration(Double expectedDuration)
The expected duration for the task run.
expectedDuration
- the value to setpublic TaskOperator.Builder expectedDurationUnit(TaskOperator.ExpectedDurationUnit expectedDurationUnit)
The expected duration unit of measure.
expectedDurationUnit
- the value to setpublic TaskOperator.Builder taskType(TaskOperator.TaskType taskType)
The type of the task referenced in the task property.
taskType
- the value to setpublic TaskOperator.Builder task(Task task)
public TaskOperator.Builder triggerRule(TaskOperator.TriggerRule triggerRule)
The merge condition. The conditions are ALL_SUCCESS - All the preceeding operators need to be successful. ALL_FAILED - All the preceeding operators should have failed. ALL_COMPLETE - All the preceeding operators should have completed. It could have executed successfully or failed.
triggerRule
- the value to setpublic TaskOperator.Builder configProviderDelegate(ConfigProvider configProviderDelegate)
public TaskOperator build()
public TaskOperator.Builder copy(TaskOperator model)
Copyright © 2016–2024. All rights reserved.