com.google.api.services.dataproc.model.OrderedJob Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.dataproc.model;
/**
* A job executed by the workflow.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class OrderedJob extends com.google.api.client.json.GenericJson {
/**
* Optional. Job is a Flink job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private FlinkJob flinkJob;
/**
* Optional. Job is a Hadoop job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private HadoopJob hadoopJob;
/**
* Optional. Job is a Hive job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private HiveJob hiveJob;
/**
* Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters
* long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must
* be between 1 and 63 characters long, and must conform to the following regular expression:
* \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* Optional. Job is a Pig job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PigJob pigJob;
/**
* Optional. The optional list of prerequisite job step_ids. If not specified, the job will start
* at the beginning of workflow.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List prerequisiteStepIds;
/**
* Optional. Job is a Presto job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PrestoJob prestoJob;
/**
* Optional. Job is a PySpark job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PySparkJob pysparkJob;
/**
* Optional. Job scheduling configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobScheduling scheduling;
/**
* Optional. Job is a Spark job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SparkJob sparkJob;
/**
* Optional. Job is a SparkR job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SparkRJob sparkRJob;
/**
* Optional. Job is a SparkSql job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SparkSqlJob sparkSqlJob;
/**
* Required. The step id. The id must be unique among all jobs within the template.The step id is
* used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in
* prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers
* (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must
* consist of between 3 and 50 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String stepId;
/**
* Optional. Job is a Trino job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TrinoJob trinoJob;
/**
* Optional. Job is a Flink job.
* @return value or {@code null} for none
*/
public FlinkJob getFlinkJob() {
return flinkJob;
}
/**
* Optional. Job is a Flink job.
* @param flinkJob flinkJob or {@code null} for none
*/
public OrderedJob setFlinkJob(FlinkJob flinkJob) {
this.flinkJob = flinkJob;
return this;
}
/**
* Optional. Job is a Hadoop job.
* @return value or {@code null} for none
*/
public HadoopJob getHadoopJob() {
return hadoopJob;
}
/**
* Optional. Job is a Hadoop job.
* @param hadoopJob hadoopJob or {@code null} for none
*/
public OrderedJob setHadoopJob(HadoopJob hadoopJob) {
this.hadoopJob = hadoopJob;
return this;
}
/**
* Optional. Job is a Hive job.
* @return value or {@code null} for none
*/
public HiveJob getHiveJob() {
return hiveJob;
}
/**
* Optional. Job is a Hive job.
* @param hiveJob hiveJob or {@code null} for none
*/
public OrderedJob setHiveJob(HiveJob hiveJob) {
this.hiveJob = hiveJob;
return this;
}
/**
* Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters
* long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must
* be between 1 and 63 characters long, and must conform to the following regular expression:
* \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters
* long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must
* be between 1 and 63 characters long, and must conform to the following regular expression:
* \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
* @param labels labels or {@code null} for none
*/
public OrderedJob setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* Optional. Job is a Pig job.
* @return value or {@code null} for none
*/
public PigJob getPigJob() {
return pigJob;
}
/**
* Optional. Job is a Pig job.
* @param pigJob pigJob or {@code null} for none
*/
public OrderedJob setPigJob(PigJob pigJob) {
this.pigJob = pigJob;
return this;
}
/**
* Optional. The optional list of prerequisite job step_ids. If not specified, the job will start
* at the beginning of workflow.
* @return value or {@code null} for none
*/
public java.util.List getPrerequisiteStepIds() {
return prerequisiteStepIds;
}
/**
* Optional. The optional list of prerequisite job step_ids. If not specified, the job will start
* at the beginning of workflow.
* @param prerequisiteStepIds prerequisiteStepIds or {@code null} for none
*/
public OrderedJob setPrerequisiteStepIds(java.util.List prerequisiteStepIds) {
this.prerequisiteStepIds = prerequisiteStepIds;
return this;
}
/**
* Optional. Job is a Presto job.
* @return value or {@code null} for none
*/
public PrestoJob getPrestoJob() {
return prestoJob;
}
/**
* Optional. Job is a Presto job.
* @param prestoJob prestoJob or {@code null} for none
*/
public OrderedJob setPrestoJob(PrestoJob prestoJob) {
this.prestoJob = prestoJob;
return this;
}
/**
* Optional. Job is a PySpark job.
* @return value or {@code null} for none
*/
public PySparkJob getPysparkJob() {
return pysparkJob;
}
/**
* Optional. Job is a PySpark job.
* @param pysparkJob pysparkJob or {@code null} for none
*/
public OrderedJob setPysparkJob(PySparkJob pysparkJob) {
this.pysparkJob = pysparkJob;
return this;
}
/**
* Optional. Job scheduling configuration.
* @return value or {@code null} for none
*/
public JobScheduling getScheduling() {
return scheduling;
}
/**
* Optional. Job scheduling configuration.
* @param scheduling scheduling or {@code null} for none
*/
public OrderedJob setScheduling(JobScheduling scheduling) {
this.scheduling = scheduling;
return this;
}
/**
* Optional. Job is a Spark job.
* @return value or {@code null} for none
*/
public SparkJob getSparkJob() {
return sparkJob;
}
/**
* Optional. Job is a Spark job.
* @param sparkJob sparkJob or {@code null} for none
*/
public OrderedJob setSparkJob(SparkJob sparkJob) {
this.sparkJob = sparkJob;
return this;
}
/**
* Optional. Job is a SparkR job.
* @return value or {@code null} for none
*/
public SparkRJob getSparkRJob() {
return sparkRJob;
}
/**
* Optional. Job is a SparkR job.
* @param sparkRJob sparkRJob or {@code null} for none
*/
public OrderedJob setSparkRJob(SparkRJob sparkRJob) {
this.sparkRJob = sparkRJob;
return this;
}
/**
* Optional. Job is a SparkSql job.
* @return value or {@code null} for none
*/
public SparkSqlJob getSparkSqlJob() {
return sparkSqlJob;
}
/**
* Optional. Job is a SparkSql job.
* @param sparkSqlJob sparkSqlJob or {@code null} for none
*/
public OrderedJob setSparkSqlJob(SparkSqlJob sparkSqlJob) {
this.sparkSqlJob = sparkSqlJob;
return this;
}
/**
* Required. The step id. The id must be unique among all jobs within the template.The step id is
* used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in
* prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers
* (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must
* consist of between 3 and 50 characters.
* @return value or {@code null} for none
*/
public java.lang.String getStepId() {
return stepId;
}
/**
* Required. The step id. The id must be unique among all jobs within the template.The step id is
* used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in
* prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers
* (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must
* consist of between 3 and 50 characters.
* @param stepId stepId or {@code null} for none
*/
public OrderedJob setStepId(java.lang.String stepId) {
this.stepId = stepId;
return this;
}
/**
* Optional. Job is a Trino job.
* @return value or {@code null} for none
*/
public TrinoJob getTrinoJob() {
return trinoJob;
}
/**
* Optional. Job is a Trino job.
* @param trinoJob trinoJob or {@code null} for none
*/
public OrderedJob setTrinoJob(TrinoJob trinoJob) {
this.trinoJob = trinoJob;
return this;
}
@Override
public OrderedJob set(String fieldName, Object value) {
return (OrderedJob) super.set(fieldName, value);
}
@Override
public OrderedJob clone() {
return (OrderedJob) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy