public static class JobExecution.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JobExecution |
build() |
JobExecution.Builder |
copy(JobExecution model) |
JobExecution.Builder |
createdById(String createdById)
OCID of the user who created the job execution.
|
JobExecution.Builder |
dataEntityKey(String dataEntityKey)
The key of the associated data entity resource.
|
JobExecution.Builder |
errorCode(String errorCode)
Error code returned from the job execution or null if job is still running or didn’t
return an error.
|
JobExecution.Builder |
errorMessage(String errorMessage)
Error message returned from the job execution or null if job is still running or didn’t
return an error.
|
JobExecution.Builder |
eventKey(String eventKey)
An identifier used for log message correlation.
|
JobExecution.Builder |
externalUrl(String externalUrl)
If the job is an external process, then a URL of the job for accessing this resource and
its status.
|
JobExecution.Builder |
jobKey(String jobKey)
The unique key of the parent job.
|
JobExecution.Builder |
jobType(JobType jobType)
Type of the job execution.
|
JobExecution.Builder |
key(String key)
Unique key of the job execution resource.
|
JobExecution.Builder |
lifecycleState(JobExecutionState lifecycleState)
Status of the job execution, such as running, paused, or completed.
|
JobExecution.Builder |
parentKey(String parentKey)
The unique key of the parent execution or null if this job execution has no parent.
|
JobExecution.Builder |
processKey(String processKey)
Process identifier related to the job execution if the job is an external job.
|
JobExecution.Builder |
properties(Map<String,Map<String,String>> properties)
A map of maps that contains the execution context properties which are specific to a job
execution.
|
JobExecution.Builder |
scheduleInstanceKey(String scheduleInstanceKey)
The unique key of the triggering external scheduler resource or null if this job
execution is not externally triggered.
|
JobExecution.Builder |
subType(String subType)
Sub-type of this job execution.
|
JobExecution.Builder |
timeCreated(Date timeCreated)
The date and time the job execution was created, in the format defined by
RFC3339.
|
JobExecution.Builder |
timeEnded(Date timeEnded)
Time that the job execution ended or null if it hasn’t yet completed.
|
JobExecution.Builder |
timeStarted(Date timeStarted)
Time that job execution started.
|
JobExecution.Builder |
updatedBy(String updatedBy)
OCID of the user who updated the job execution.
|
JobExecution.Builder |
uri(String uri)
URI to the job execution instance in the API.
|
public JobExecution.Builder key(String key)
Unique key of the job execution resource.
key
- the value to setpublic JobExecution.Builder jobKey(String jobKey)
The unique key of the parent job.
jobKey
- the value to setpublic JobExecution.Builder jobType(JobType jobType)
Type of the job execution.
jobType
- the value to setpublic JobExecution.Builder subType(String subType)
Sub-type of this job execution.
subType
- the value to setpublic JobExecution.Builder parentKey(String parentKey)
The unique key of the parent execution or null if this job execution has no parent.
parentKey
- the value to setpublic JobExecution.Builder scheduleInstanceKey(String scheduleInstanceKey)
The unique key of the triggering external scheduler resource or null if this job execution is not externally triggered.
scheduleInstanceKey
- the value to setpublic JobExecution.Builder lifecycleState(JobExecutionState lifecycleState)
Status of the job execution, such as running, paused, or completed.
lifecycleState
- the value to setpublic JobExecution.Builder timeCreated(Date timeCreated)
The date and time the job execution was created, in the format defined by
RFC3339. Example: 2019-03-25T21:10:29.600Z
timeCreated
- the value to setpublic JobExecution.Builder timeStarted(Date timeStarted)
Time that job execution started. An RFC3339 formatted datetime string.
timeStarted
- the value to setpublic JobExecution.Builder timeEnded(Date timeEnded)
Time that the job execution ended or null if it hasn’t yet completed. An RFC3339 formatted datetime string.
timeEnded
- the value to setpublic JobExecution.Builder errorCode(String errorCode)
Error code returned from the job execution or null if job is still running or didn’t return an error.
errorCode
- the value to setpublic JobExecution.Builder errorMessage(String errorMessage)
Error message returned from the job execution or null if job is still running or didn’t return an error.
errorMessage
- the value to setpublic JobExecution.Builder processKey(String processKey)
Process identifier related to the job execution if the job is an external job.
processKey
- the value to setpublic JobExecution.Builder externalUrl(String externalUrl)
If the job is an external process, then a URL of the job for accessing this resource and its status.
externalUrl
- the value to setpublic JobExecution.Builder eventKey(String eventKey)
An identifier used for log message correlation.
eventKey
- the value to setpublic JobExecution.Builder dataEntityKey(String dataEntityKey)
The key of the associated data entity resource.
dataEntityKey
- the value to setpublic JobExecution.Builder createdById(String createdById)
OCID of the user who created the job execution.
createdById
- the value to setpublic JobExecution.Builder updatedBy(String updatedBy)
OCID of the user who updated the job execution.
updatedBy
- the value to setpublic JobExecution.Builder uri(String uri)
URI to the job execution instance in the API.
uri
- the value to setpublic JobExecution.Builder properties(Map<String,Map<String,String>> properties)
A map of maps that contains the execution context properties which are specific to a job
execution. Each job execution may define it’s set of required and optional properties.
The map keys are category names and the values are maps of property name to property
value. Every property is contained inside of a category. Most job executions have
required properties within the “default” category. Example: {"properties": {
"default": { "host": "host1", "port": "1521", "database": "orcl"}}}
properties
- the value to setpublic JobExecution build()
public JobExecution.Builder copy(JobExecution model)
Copyright © 2016–2024. All rights reserved.