Class JobDefinition
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datacatalog.model.JobDefinition
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190325") public final class JobDefinition extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelRepresentation of a job definition resource.Job definitions define the harvest scope and includes the list of objects to be harvested along with a schedule. The list of objects is usually specified through a combination of object type, regular expressions, or specific names of objects and a sample size for the data harvested. 
 Note: Objects should always be created or deserialized using theJobDefinition.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theJobDefinition.Builder, which maintain a set of all explicitly set fields calledJobDefinition.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJobDefinition.Builder
 - 
Constructor SummaryConstructors Constructor Description JobDefinition(String key, String displayName, String catalogId, JobType jobType, Boolean isIncremental, String dataAssetKey, String glossaryKey, String description, String connectionKey, String internalVersion, LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, String createdById, String updatedById, String uri, Boolean isSampleDataExtracted, Integer sampleDataSizeInMBs, Date timeLatestExecutionStarted, Date timeLatestExecutionEnded, JobExecutionState jobExecutionState, JobScheduleType scheduleType, Map<String,Map<String,String>> properties)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobDefinition.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCatalogId()The data catalog’s OCID.StringgetConnectionKey()The key of the default connection resource to be used for harvest, sampling, profiling jobs.StringgetCreatedById()OCID of the user who created this job definition.StringgetDataAssetKey()The key of the data asset for which the job is defined.StringgetDescription()Detailed description of the job definition.StringgetDisplayName()A user-friendly display name.StringgetGlossaryKey()Unique key of the glossary to which this job applies.StringgetInternalVersion()Version of the job definition object.BooleangetIsIncremental()Specifies if the job definition is incremental or full.BooleangetIsSampleDataExtracted()Specify if sample data to be extracted as part of this harvest.JobExecutionStategetJobExecutionState()Status of the latest job execution, such as running, paused, or completed.JobTypegetJobType()Type of the job definition.StringgetKey()Unique key of the job definition resource that is immutable.LifecycleStategetLifecycleState()Lifecycle state of the job definition.Map<String,Map<String,String>>getProperties()A map of maps that contains the properties which are specific to the job type.IntegergetSampleDataSizeInMBs()Specify the sample data size in MB, specified as number of rows, for this metadata harvest.JobScheduleTypegetScheduleType()Type of job schedule for the latest job executed.DategetTimeCreated()The date and time the job definition was created, in the format defined by RFC3339.DategetTimeLatestExecutionEnded()Time that the latest job execution ended or null if it hasn’t yet completed.DategetTimeLatestExecutionStarted()Time that the latest job execution started.DategetTimeUpdated()The last time that any change was made to the data asset.StringgetUpdatedById()OCID of the user who updated this job definition.StringgetUri()URI to the job definition instance in the API.inthashCode()JobDefinition.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
JobDefinition@Deprecated @ConstructorProperties({"key","displayName","catalogId","jobType","isIncremental","dataAssetKey","glossaryKey","description","connectionKey","internalVersion","lifecycleState","timeCreated","timeUpdated","createdById","updatedById","uri","isSampleDataExtracted","sampleDataSizeInMBs","timeLatestExecutionStarted","timeLatestExecutionEnded","jobExecutionState","scheduleType","properties"}) public JobDefinition(String key, String displayName, String catalogId, JobType jobType, Boolean isIncremental, String dataAssetKey, String glossaryKey, String description, String connectionKey, String internalVersion, LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, String createdById, String updatedById, String uri, Boolean isSampleDataExtracted, Integer sampleDataSizeInMBs, Date timeLatestExecutionStarted, Date timeLatestExecutionEnded, JobExecutionState jobExecutionState, JobScheduleType scheduleType, Map<String,Map<String,String>> properties) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static JobDefinition.Builder builder() Create a new builder.
 - 
toBuilderpublic JobDefinition.Builder toBuilder() 
 - 
getKeypublic String getKey() Unique key of the job definition resource that is immutable.- Returns:
- the value
 
 - 
getDisplayNamepublic String getDisplayName() A user-friendly display name.Does not have to be unique, and it’s changeable. Avoid entering confidential information. - Returns:
- the value
 
 - 
getCatalogIdpublic String getCatalogId() The data catalog’s OCID.- Returns:
- the value
 
 - 
getJobTypepublic JobType getJobType() Type of the job definition.- Returns:
- the value
 
 - 
getIsIncrementalpublic Boolean getIsIncremental() Specifies if the job definition is incremental or full.- Returns:
- the value
 
 - 
getDataAssetKeypublic String getDataAssetKey() The key of the data asset for which the job is defined.- Returns:
- the value
 
 - 
getGlossaryKeypublic String getGlossaryKey() Unique key of the glossary to which this job applies.- Returns:
- the value
 
 - 
getDescriptionpublic String getDescription() Detailed description of the job definition.- Returns:
- the value
 
 - 
getConnectionKeypublic String getConnectionKey() The key of the default connection resource to be used for harvest, sampling, profiling jobs.This may be overridden in each job instance. - Returns:
- the value
 
 - 
getInternalVersionpublic String getInternalVersion() Version of the job definition object.Used internally but can be visible to users. - Returns:
- the value
 
 - 
getLifecycleStatepublic LifecycleState getLifecycleState() Lifecycle state of the job definition.- Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the job definition was created, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z - Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() The last time that any change was made to the data asset.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getCreatedByIdpublic String getCreatedById() OCID of the user who created this job definition.- Returns:
- the value
 
 - 
getUpdatedByIdpublic String getUpdatedById() OCID of the user who updated this job definition.- Returns:
- the value
 
 - 
getUripublic String getUri() URI to the job definition instance in the API.- Returns:
- the value
 
 - 
getIsSampleDataExtractedpublic Boolean getIsSampleDataExtracted() Specify if sample data to be extracted as part of this harvest.- Returns:
- the value
 
 - 
getSampleDataSizeInMBspublic Integer getSampleDataSizeInMBs() Specify the sample data size in MB, specified as number of rows, for this metadata harvest.- Returns:
- the value
 
 - 
getTimeLatestExecutionStartedpublic Date getTimeLatestExecutionStarted() Time that the latest job execution started.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getTimeLatestExecutionEndedpublic Date getTimeLatestExecutionEnded() Time that the latest job execution ended or null if it hasn’t yet completed.An RFC3339 formatted datetime string. - Returns:
- the value
 
 - 
getJobExecutionStatepublic JobExecutionState getJobExecutionState() Status of the latest job execution, such as running, paused, or completed.- Returns:
- the value
 
 - 
getScheduleTypepublic JobScheduleType getScheduleType() Type of job schedule for the latest job executed.- Returns:
- the value
 
 - 
getPropertiespublic Map<String,Map<String,String>> getProperties() 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”}}} - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-