Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TaskRun.Builder |
authMode(TaskRun.AuthMode authMode)
The autorization mode for when the task was executed.
|
TaskRun |
build() |
TaskRun.Builder |
bytesProcessed(Long bytesProcessed)
The number of bytes processed in the task run.
|
TaskRun.Builder |
configProvider(ConfigProvider configProvider) |
TaskRun.Builder |
copy(TaskRun model) |
TaskRun.Builder |
description(String description)
Detailed description for the object.
|
TaskRun.Builder |
endTimeMillis(Long endTimeMillis)
The end time.
|
TaskRun.Builder |
errorMessage(String errorMessage)
Contains an error message if status is
ERROR . |
TaskRun.Builder |
executionErrors(List<String> executionErrors)
An array of execution errors from the run.
|
TaskRun.Builder |
expectedDuration(Double expectedDuration)
The expected duration for the task run.
|
TaskRun.Builder |
expectedDurationUnit(TaskRun.ExpectedDurationUnit expectedDurationUnit)
The expected duration unit of measure.
|
TaskRun.Builder |
externalId(String externalId)
The external identifier for the task run.
|
TaskRun.Builder |
identifier(String identifier)
Value can only contain upper case letters, underscore and numbers.
|
TaskRun.Builder |
isLogProcessingInProgress(Boolean isLogProcessingInProgress)
This field tells the user if there is any logs being fetched in backend for failure.
|
TaskRun.Builder |
key(String key)
The key of the object.
|
TaskRun.Builder |
keyMap(Map<String,String> keyMap)
A key map.
|
TaskRun.Builder |
lastUpdated(Long lastUpdated)
The date and time the object was last updated.
|
TaskRun.Builder |
metadata(ObjectMetadata metadata) |
TaskRun.Builder |
metrics(Map<String,Float> metrics)
A map of metrics for the run.
|
TaskRun.Builder |
modelType(String modelType)
The type of the object.
|
TaskRun.Builder |
modelVersion(String modelVersion)
The model version of an object.
|
TaskRun.Builder |
name(String name)
Free form text without any restriction on permitted characters.
|
TaskRun.Builder |
objectStatus(Integer objectStatus)
The status of an object that can be set to value 1 for shallow references across objects,
other values reserved.
|
TaskRun.Builder |
objectVersion(Integer objectVersion)
The version of the object that is used to track changes in the object instance.
|
TaskRun.Builder |
opcRequestId(String opcRequestId)
The OPC request ID of execution of the task run.
|
TaskRun.Builder |
outputs(Map<String,ParameterValue> outputs)
A map of the outputs of the run.
|
TaskRun.Builder |
parentRef(ParentReference parentRef) |
TaskRun.Builder |
recordsWritten(Long recordsWritten)
The number of records processed in the task run.
|
TaskRun.Builder |
retryAttempt(Integer retryAttempt)
Holds the particular attempt number.
|
TaskRun.Builder |
startTimeMillis(Long startTimeMillis)
The start time.
|
TaskRun.Builder |
status(TaskRun.Status status)
The status of the task run.
|
TaskRun.Builder |
taskKey(String taskKey)
Task Key of the task for which TaskRun is being created.
|
TaskRun.Builder |
taskSchedule(TaskSchedule taskSchedule) |
TaskRun.Builder |
taskType(TaskRun.TaskType taskType)
The type of task run.
|
TaskRun.Builder |
terminationErrors(List<String> terminationErrors)
An array of termination errors from the run.
|
public TaskRun.Builder key(String key)
The key of the object.
key
- the value to setpublic TaskRun.Builder modelType(String modelType)
The type of the object.
modelType
- the value to setpublic TaskRun.Builder modelVersion(String modelVersion)
The model version of an object.
modelVersion
- the value to setpublic TaskRun.Builder parentRef(ParentReference parentRef)
public TaskRun.Builder name(String name)
Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
name
- the value to setpublic TaskRun.Builder description(String description)
Detailed description for the object.
description
- the value to setpublic TaskRun.Builder objectVersion(Integer objectVersion)
The version of the object that is used to track changes in the object instance.
objectVersion
- the value to setpublic TaskRun.Builder configProvider(ConfigProvider configProvider)
public TaskRun.Builder status(TaskRun.Status status)
The status of the task run.
status
- the value to setpublic TaskRun.Builder startTimeMillis(Long startTimeMillis)
The start time.
startTimeMillis
- the value to setpublic TaskRun.Builder endTimeMillis(Long endTimeMillis)
The end time.
endTimeMillis
- the value to setpublic TaskRun.Builder lastUpdated(Long lastUpdated)
The date and time the object was last updated.
lastUpdated
- the value to setpublic TaskRun.Builder recordsWritten(Long recordsWritten)
The number of records processed in the task run.
recordsWritten
- the value to setpublic TaskRun.Builder bytesProcessed(Long bytesProcessed)
The number of bytes processed in the task run.
bytesProcessed
- the value to setpublic TaskRun.Builder errorMessage(String errorMessage)
Contains an error message if status is ERROR
.
errorMessage
- the value to setpublic TaskRun.Builder expectedDuration(Double expectedDuration)
The expected duration for the task run.
expectedDuration
- the value to setpublic TaskRun.Builder expectedDurationUnit(TaskRun.ExpectedDurationUnit expectedDurationUnit)
The expected duration unit of measure.
expectedDurationUnit
- the value to setpublic TaskRun.Builder taskKey(String taskKey)
Task Key of the task for which TaskRun is being created. If not specified, the AggregatorKey in RegistryMetadata will be assumed to be the TaskKey
taskKey
- the value to setpublic TaskRun.Builder externalId(String externalId)
The external identifier for the task run.
externalId
- the value to setpublic TaskRun.Builder retryAttempt(Integer retryAttempt)
Holds the particular attempt number.
retryAttempt
- the value to setpublic TaskRun.Builder taskSchedule(TaskSchedule taskSchedule)
public TaskRun.Builder metrics(Map<String,Float> metrics)
A map of metrics for the run.
metrics
- the value to setpublic TaskRun.Builder outputs(Map<String,ParameterValue> outputs)
A map of the outputs of the run.
outputs
- the value to setpublic TaskRun.Builder executionErrors(List<String> executionErrors)
An array of execution errors from the run.
executionErrors
- the value to setpublic TaskRun.Builder terminationErrors(List<String> terminationErrors)
An array of termination errors from the run.
terminationErrors
- the value to setpublic TaskRun.Builder authMode(TaskRun.AuthMode authMode)
The autorization mode for when the task was executed.
authMode
- the value to setpublic TaskRun.Builder opcRequestId(String opcRequestId)
The OPC request ID of execution of the task run.
opcRequestId
- the value to setpublic TaskRun.Builder objectStatus(Integer objectStatus)
The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
objectStatus
- the value to setpublic TaskRun.Builder taskType(TaskRun.TaskType taskType)
The type of task run.
taskType
- the value to setpublic TaskRun.Builder isLogProcessingInProgress(Boolean isLogProcessingInProgress)
This field tells the user if there is any logs being fetched in backend for failure. Applicable only for failed pipeline tasks.
isLogProcessingInProgress
- the value to setpublic TaskRun.Builder identifier(String identifier)
Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be modified.
identifier
- the value to setpublic TaskRun.Builder metadata(ObjectMetadata metadata)
public TaskRun.Builder keyMap(Map<String,String> keyMap)
A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.
keyMap
- the value to setpublic TaskRun build()
public TaskRun.Builder copy(TaskRun model)
Copyright © 2016–2024. All rights reserved.