/*
 * 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.datapipelines.v1.model;

/**
 * Definition of the job information maintained by the pipeline. Fields in this entity are retrieved
 * from the executor API (e.g. Dataflow API).
 *
 * <p> 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 Data pipelines API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudDatapipelinesV1Job extends com.google.api.client.json.GenericJson {

  /**
   * Output only. The time of job creation.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * All the details that are specific to a Dataflow job.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDatapipelinesV1DataflowJobDetails dataflowJobDetails;

  /**
   * Output only. The time of job termination. This is absent if the job is still running.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String endTime;

  /**
   * Output only. The internal ID for the job.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * Required. The fully qualified resource name for the job.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The current state of the job.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * Status capturing any error code or message related to job creation or execution.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleRpcStatus status;

  /**
   * Output only. The time of job creation.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * Output only. The time of job creation.
   * @param createTime createTime or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * All the details that are specific to a Dataflow job.
   * @return value or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1DataflowJobDetails getDataflowJobDetails() {
    return dataflowJobDetails;
  }

  /**
   * All the details that are specific to a Dataflow job.
   * @param dataflowJobDetails dataflowJobDetails or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setDataflowJobDetails(GoogleCloudDatapipelinesV1DataflowJobDetails dataflowJobDetails) {
    this.dataflowJobDetails = dataflowJobDetails;
    return this;
  }

  /**
   * Output only. The time of job termination. This is absent if the job is still running.
   * @return value or {@code null} for none
   */
  public String getEndTime() {
    return endTime;
  }

  /**
   * Output only. The time of job termination. This is absent if the job is still running.
   * @param endTime endTime or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setEndTime(String endTime) {
    this.endTime = endTime;
    return this;
  }

  /**
   * Output only. The internal ID for the job.
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * Output only. The internal ID for the job.
   * @param id id or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * Required. The fully qualified resource name for the job.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Required. The fully qualified resource name for the job.
   * @param name name or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The current state of the job.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * The current state of the job.
   * @param state state or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setState(java.lang.String state) {
    this.state = state;
    return this;
  }

  /**
   * Status capturing any error code or message related to job creation or execution.
   * @return value or {@code null} for none
   */
  public GoogleRpcStatus getStatus() {
    return status;
  }

  /**
   * Status capturing any error code or message related to job creation or execution.
   * @param status status or {@code null} for none
   */
  public GoogleCloudDatapipelinesV1Job setStatus(GoogleRpcStatus status) {
    this.status = status;
    return this;
  }

  @Override
  public GoogleCloudDatapipelinesV1Job set(String fieldName, Object value) {
    return (GoogleCloudDatapipelinesV1Job) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudDatapipelinesV1Job clone() {
    return (GoogleCloudDatapipelinesV1Job) super.clone();
  }

}
