/*
 * 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 request to collect cluster diagnostic information.
 *
 * <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 Cloud Dataproc 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 DiagnoseClusterRequest extends com.google.api.client.json.GenericJson {

  /**
   * Optional. Time interval in which diagnosis should be carried out on the cluster.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Interval diagnosisInterval;

  /**
   * Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String job;

  /**
   * Optional. Specifies a list of jobs on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> jobs;

  /**
   * Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String yarnApplicationId;

  /**
   * Optional. Specifies a list of yarn applications on which diagnosis is to be performed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> yarnApplicationIds;

  /**
   * Optional. Time interval in which diagnosis should be carried out on the cluster.
   * @return value or {@code null} for none
   */
  public Interval getDiagnosisInterval() {
    return diagnosisInterval;
  }

  /**
   * Optional. Time interval in which diagnosis should be carried out on the cluster.
   * @param diagnosisInterval diagnosisInterval or {@code null} for none
   */
  public DiagnoseClusterRequest setDiagnosisInterval(Interval diagnosisInterval) {
    this.diagnosisInterval = diagnosisInterval;
    return this;
  }

  /**
   * Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * @return value or {@code null} for none
   */
  public java.lang.String getJob() {
    return job;
  }

  /**
   * Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * @param job job or {@code null} for none
   */
  public DiagnoseClusterRequest setJob(java.lang.String job) {
    this.job = job;
    return this;
  }

  /**
   * Optional. Specifies a list of jobs on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getJobs() {
    return jobs;
  }

  /**
   * Optional. Specifies a list of jobs on which diagnosis is to be performed. Format:
   * projects/{project}/regions/{region}/jobs/{job}
   * @param jobs jobs or {@code null} for none
   */
  public DiagnoseClusterRequest setJobs(java.util.List<java.lang.String> jobs) {
    this.jobs = jobs;
    return this;
  }

  /**
   * Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.
   * @return value or {@code null} for none
   */
  public java.lang.String getYarnApplicationId() {
    return yarnApplicationId;
  }

  /**
   * Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.
   * @param yarnApplicationId yarnApplicationId or {@code null} for none
   */
  public DiagnoseClusterRequest setYarnApplicationId(java.lang.String yarnApplicationId) {
    this.yarnApplicationId = yarnApplicationId;
    return this;
  }

  /**
   * Optional. Specifies a list of yarn applications on which diagnosis is to be performed.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getYarnApplicationIds() {
    return yarnApplicationIds;
  }

  /**
   * Optional. Specifies a list of yarn applications on which diagnosis is to be performed.
   * @param yarnApplicationIds yarnApplicationIds or {@code null} for none
   */
  public DiagnoseClusterRequest setYarnApplicationIds(java.util.List<java.lang.String> yarnApplicationIds) {
    this.yarnApplicationIds = yarnApplicationIds;
    return this;
  }

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

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

}
