Package com.oracle.bmc.datacatalog.model
Class JobSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datacatalog.model.JobSummary.Builder
-
- Enclosing class:
- JobSummary
public static class JobSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobSummary
build()
JobSummary.Builder
catalogId(String catalogId)
The data catalog’s OCID.JobSummary.Builder
copy(JobSummary model)
JobSummary.Builder
createdById(String createdById)
OCID of the user who created this job.JobSummary.Builder
dataAssetKey(String dataAssetKey)
Unique key of the data asset to which this job applies, if the job involves a data asset.JobSummary.Builder
description(String description)
Detailed description of the job.JobSummary.Builder
displayName(String displayName)
A user-friendly display name.JobSummary.Builder
errorCode(String errorCode)
Error code returned from the latest job execution for this job.JobSummary.Builder
errorMessage(String errorMessage)
Error message returned from the latest job execution for this job.JobSummary.Builder
executionCount(Integer executionCount)
The total number of executions for this job schedule.JobSummary.Builder
executions(List<JobExecutionSummary> executions)
Array of the executions summary associated with this job.JobSummary.Builder
glossaryKey(String glossaryKey)
Unique key of the glossary to which this job applies.JobSummary.Builder
jobDefinitionKey(String jobDefinitionKey)
The unique key of the job definition resource that defined the scope of this job.JobSummary.Builder
jobDefinitionName(String jobDefinitionName)
The display name of the job definition resource that defined the scope of this job.JobSummary.Builder
jobType(JobType jobType)
Type of the job.JobSummary.Builder
key(String key)
Unique key of the job.JobSummary.Builder
lifecycleState(JobLifecycleState lifecycleState)
Lifecycle state of the job, such as running, paused, or completed.JobSummary.Builder
scheduleCronExpression(String scheduleCronExpression)
Interval on which the job will be run.JobSummary.Builder
scheduleType(String scheduleType)
Type of job schedule that is inferred from the scheduling properties.JobSummary.Builder
timeCreated(Date timeCreated)
The date and time the job was created, in the format defined by RFC3339.JobSummary.Builder
timeOfLatestExecution(Date timeOfLatestExecution)
The date and time of the most recent execution for this job, in the format defined by RFC3339.JobSummary.Builder
timeScheduleBegin(Date timeScheduleBegin)
Date that the schedule should be operational.JobSummary.Builder
timeUpdated(Date timeUpdated)
Time that this job was last updated.JobSummary.Builder
updatedById(String updatedById)
OCID of the user who updated this job.JobSummary.Builder
uri(String uri)
URI to the job instance in the API.
-
-
-
Method Detail
-
key
public JobSummary.Builder key(String key)
Unique key of the job.- Parameters:
key
- the value to set- Returns:
- this builder
-
uri
public JobSummary.Builder uri(String uri)
URI to the job instance in the API.- Parameters:
uri
- the value to set- Returns:
- this builder
-
displayName
public JobSummary.Builder displayName(String displayName)
A user-friendly display name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
catalogId
public JobSummary.Builder catalogId(String catalogId)
The data catalog’s OCID.- Parameters:
catalogId
- the value to set- Returns:
- this builder
-
jobDefinitionKey
public JobSummary.Builder jobDefinitionKey(String jobDefinitionKey)
The unique key of the job definition resource that defined the scope of this job.- Parameters:
jobDefinitionKey
- the value to set- Returns:
- this builder
-
lifecycleState
public JobSummary.Builder lifecycleState(JobLifecycleState lifecycleState)
Lifecycle state of the job, such as running, paused, or completed.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
jobType
public JobSummary.Builder jobType(JobType jobType)
Type of the job.- Parameters:
jobType
- the value to set- Returns:
- this builder
-
scheduleType
public JobSummary.Builder scheduleType(String scheduleType)
Type of job schedule that is inferred from the scheduling properties.- Parameters:
scheduleType
- the value to set- Returns:
- this builder
-
description
public JobSummary.Builder description(String description)
Detailed description of the job.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public JobSummary.Builder timeCreated(Date timeCreated)
The date and time the job was created, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public JobSummary.Builder timeUpdated(Date timeUpdated)
Time that this job was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
createdById
public JobSummary.Builder createdById(String createdById)
OCID of the user who created this job.- Parameters:
createdById
- the value to set- Returns:
- this builder
-
updatedById
public JobSummary.Builder updatedById(String updatedById)
OCID of the user who updated this job.- Parameters:
updatedById
- the value to set- Returns:
- this builder
-
scheduleCronExpression
public JobSummary.Builder scheduleCronExpression(String scheduleCronExpression)
Interval on which the job will be run.Value is specified as a cron-supported time specification “nickname”. The following subset of those is supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional option @default is supported, which will schedule jobs at a more granular frequency.
- Parameters:
scheduleCronExpression
- the value to set- Returns:
- this builder
-
timeScheduleBegin
public JobSummary.Builder timeScheduleBegin(Date timeScheduleBegin)
Date that the schedule should be operational.An RFC3339 formatted datetime string.
- Parameters:
timeScheduleBegin
- the value to set- Returns:
- this builder
-
executionCount
public JobSummary.Builder executionCount(Integer executionCount)
The total number of executions for this job schedule.- Parameters:
executionCount
- the value to set- Returns:
- this builder
-
timeOfLatestExecution
public JobSummary.Builder timeOfLatestExecution(Date timeOfLatestExecution)
The date and time of the most recent execution for this job, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z
- Parameters:
timeOfLatestExecution
- the value to set- Returns:
- this builder
-
jobDefinitionName
public JobSummary.Builder jobDefinitionName(String jobDefinitionName)
The display name of the job definition resource that defined the scope of this job.- Parameters:
jobDefinitionName
- the value to set- Returns:
- this builder
-
dataAssetKey
public JobSummary.Builder dataAssetKey(String dataAssetKey)
Unique key of the data asset to which this job applies, if the job involves a data asset.- Parameters:
dataAssetKey
- the value to set- Returns:
- this builder
-
glossaryKey
public JobSummary.Builder glossaryKey(String glossaryKey)
Unique key of the glossary to which this job applies.- Parameters:
glossaryKey
- the value to set- Returns:
- this builder
-
errorCode
public JobSummary.Builder errorCode(String errorCode)
Error code returned from the latest job execution for this job.Useful when the latest Job execution is in FAILED state.
- Parameters:
errorCode
- the value to set- Returns:
- this builder
-
errorMessage
public JobSummary.Builder errorMessage(String errorMessage)
Error message returned from the latest job execution for this job.Useful when the latest Job Execution is in a FAILED state.
- Parameters:
errorMessage
- the value to set- Returns:
- this builder
-
executions
public JobSummary.Builder executions(List<JobExecutionSummary> executions)
Array of the executions summary associated with this job.- Parameters:
executions
- the value to set- Returns:
- this builder
-
build
public JobSummary build()
-
copy
public JobSummary.Builder copy(JobSummary model)
-
-