public static class JobDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JobDefinition |
build() |
JobDefinition.Builder |
catalogId(String catalogId)
The data catalog’s OCID.
|
JobDefinition.Builder |
connectionKey(String connectionKey)
The key of the default connection resource to be used for harvest, sampling, profiling
jobs.
|
JobDefinition.Builder |
copy(JobDefinition model) |
JobDefinition.Builder |
createdById(String createdById)
OCID of the user who created this job definition.
|
JobDefinition.Builder |
dataAssetKey(String dataAssetKey)
The key of the data asset for which the job is defined.
|
JobDefinition.Builder |
description(String description)
Detailed description of the job definition.
|
JobDefinition.Builder |
displayName(String displayName)
A user-friendly display name.
|
JobDefinition.Builder |
glossaryKey(String glossaryKey)
Unique key of the glossary to which this job applies.
|
JobDefinition.Builder |
internalVersion(String internalVersion)
Version of the job definition object.
|
JobDefinition.Builder |
isIncremental(Boolean isIncremental)
Specifies if the job definition is incremental or full.
|
JobDefinition.Builder |
isSampleDataExtracted(Boolean isSampleDataExtracted)
Specify if sample data to be extracted as part of this harvest.
|
JobDefinition.Builder |
jobExecutionState(JobExecutionState jobExecutionState)
Status of the latest job execution, such as running, paused, or completed.
|
JobDefinition.Builder |
jobType(JobType jobType)
Type of the job definition.
|
JobDefinition.Builder |
key(String key)
Unique key of the job definition resource that is immutable.
|
JobDefinition.Builder |
lifecycleState(LifecycleState lifecycleState)
Lifecycle state of the job definition.
|
JobDefinition.Builder |
properties(Map<String,Map<String,String>> properties)
A map of maps that contains the properties which are specific to the job type.
|
JobDefinition.Builder |
sampleDataSizeInMBs(Integer sampleDataSizeInMBs)
Specify the sample data size in MB, specified as number of rows, for this metadata
harvest.
|
JobDefinition.Builder |
scheduleType(JobScheduleType scheduleType)
Type of job schedule for the latest job executed.
|
JobDefinition.Builder |
timeCreated(Date timeCreated)
The date and time the job definition was created, in the format defined by
RFC3339.
|
JobDefinition.Builder |
timeLatestExecutionEnded(Date timeLatestExecutionEnded)
Time that the latest job execution ended or null if it hasn’t yet completed.
|
JobDefinition.Builder |
timeLatestExecutionStarted(Date timeLatestExecutionStarted)
Time that the latest job execution started.
|
JobDefinition.Builder |
timeUpdated(Date timeUpdated)
The last time that any change was made to the data asset.
|
JobDefinition.Builder |
updatedById(String updatedById)
OCID of the user who updated this job definition.
|
JobDefinition.Builder |
uri(String uri)
URI to the job definition instance in the API.
|
public JobDefinition.Builder key(String key)
Unique key of the job definition resource that is immutable.
key
- the value to setpublic JobDefinition.Builder displayName(String displayName)
A user-friendly display name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic JobDefinition.Builder catalogId(String catalogId)
The data catalog’s OCID.
catalogId
- the value to setpublic JobDefinition.Builder jobType(JobType jobType)
Type of the job definition.
jobType
- the value to setpublic JobDefinition.Builder isIncremental(Boolean isIncremental)
Specifies if the job definition is incremental or full.
isIncremental
- the value to setpublic JobDefinition.Builder dataAssetKey(String dataAssetKey)
The key of the data asset for which the job is defined.
dataAssetKey
- the value to setpublic JobDefinition.Builder glossaryKey(String glossaryKey)
Unique key of the glossary to which this job applies.
glossaryKey
- the value to setpublic JobDefinition.Builder description(String description)
Detailed description of the job definition.
description
- the value to setpublic JobDefinition.Builder connectionKey(String connectionKey)
The key of the default connection resource to be used for harvest, sampling, profiling jobs. This may be overridden in each job instance.
connectionKey
- the value to setpublic JobDefinition.Builder internalVersion(String internalVersion)
Version of the job definition object. Used internally but can be visible to users.
internalVersion
- the value to setpublic JobDefinition.Builder lifecycleState(LifecycleState lifecycleState)
Lifecycle state of the job definition.
lifecycleState
- the value to setpublic JobDefinition.Builder timeCreated(Date timeCreated)
The date and time the job definition was created, in the format defined by
RFC3339. Example: 2019-03-25T21:10:29.600Z
timeCreated
- the value to setpublic JobDefinition.Builder timeUpdated(Date timeUpdated)
The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic JobDefinition.Builder createdById(String createdById)
OCID of the user who created this job definition.
createdById
- the value to setpublic JobDefinition.Builder updatedById(String updatedById)
OCID of the user who updated this job definition.
updatedById
- the value to setpublic JobDefinition.Builder uri(String uri)
URI to the job definition instance in the API.
uri
- the value to setpublic JobDefinition.Builder isSampleDataExtracted(Boolean isSampleDataExtracted)
Specify if sample data to be extracted as part of this harvest.
isSampleDataExtracted
- the value to setpublic JobDefinition.Builder sampleDataSizeInMBs(Integer sampleDataSizeInMBs)
Specify the sample data size in MB, specified as number of rows, for this metadata harvest.
sampleDataSizeInMBs
- the value to setpublic JobDefinition.Builder timeLatestExecutionStarted(Date timeLatestExecutionStarted)
Time that the latest job execution started. An RFC3339 formatted datetime string.
timeLatestExecutionStarted
- the value to setpublic JobDefinition.Builder timeLatestExecutionEnded(Date timeLatestExecutionEnded)
Time that the latest job execution ended or null if it hasn’t yet completed. An RFC3339 formatted datetime string.
timeLatestExecutionEnded
- the value to setpublic JobDefinition.Builder jobExecutionState(JobExecutionState jobExecutionState)
Status of the latest job execution, such as running, paused, or completed.
jobExecutionState
- the value to setpublic JobDefinition.Builder scheduleType(JobScheduleType scheduleType)
Type of job schedule for the latest job executed.
scheduleType
- the value to setpublic JobDefinition.Builder properties(Map<String,Map<String,String>> properties)
A map of maps that contains the properties which are specific to the job type. Each job
type definition 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 definitions have required properties within
the “default” category. Example: {"properties": { "default": { "host": "host1",
"port": "1521", "database": "orcl"}}}
properties
- the value to setpublic JobDefinition build()
public JobDefinition.Builder copy(JobDefinition model)
Copyright © 2016–2024. All rights reserved.