/*
 * 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.dlp.v2.model;

/**
 * Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating
 * risk metrics or inspecting Google Cloud Storage.
 *
 * <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 Data Loss Prevention (DLP) 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 GooglePrivacyDlpV2CreateDlpJobRequest extends com.google.api.client.json.GenericJson {

  /**
   * An inspection job scans a storage repository for InfoTypes.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GooglePrivacyDlpV2InspectJobConfig inspectJob;

  /**
   * The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must
   * match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be
   * empty to allow the system to generate one.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String jobId;

  /**
   * Deprecated. This field has no effect.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String locationId;

  /**
   * A risk analysis job calculates re-identification risk metrics for a BigQuery table.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GooglePrivacyDlpV2RiskAnalysisJobConfig riskJob;

  /**
   * An inspection job scans a storage repository for InfoTypes.
   * @return value or {@code null} for none
   */
  public GooglePrivacyDlpV2InspectJobConfig getInspectJob() {
    return inspectJob;
  }

  /**
   * An inspection job scans a storage repository for InfoTypes.
   * @param inspectJob inspectJob or {@code null} for none
   */
  public GooglePrivacyDlpV2CreateDlpJobRequest setInspectJob(GooglePrivacyDlpV2InspectJobConfig inspectJob) {
    this.inspectJob = inspectJob;
    return this;
  }

  /**
   * The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must
   * match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be
   * empty to allow the system to generate one.
   * @return value or {@code null} for none
   */
  public java.lang.String getJobId() {
    return jobId;
  }

  /**
   * The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must
   * match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be
   * empty to allow the system to generate one.
   * @param jobId jobId or {@code null} for none
   */
  public GooglePrivacyDlpV2CreateDlpJobRequest setJobId(java.lang.String jobId) {
    this.jobId = jobId;
    return this;
  }

  /**
   * Deprecated. This field has no effect.
   * @return value or {@code null} for none
   */
  public java.lang.String getLocationId() {
    return locationId;
  }

  /**
   * Deprecated. This field has no effect.
   * @param locationId locationId or {@code null} for none
   */
  public GooglePrivacyDlpV2CreateDlpJobRequest setLocationId(java.lang.String locationId) {
    this.locationId = locationId;
    return this;
  }

  /**
   * A risk analysis job calculates re-identification risk metrics for a BigQuery table.
   * @return value or {@code null} for none
   */
  public GooglePrivacyDlpV2RiskAnalysisJobConfig getRiskJob() {
    return riskJob;
  }

  /**
   * A risk analysis job calculates re-identification risk metrics for a BigQuery table.
   * @param riskJob riskJob or {@code null} for none
   */
  public GooglePrivacyDlpV2CreateDlpJobRequest setRiskJob(GooglePrivacyDlpV2RiskAnalysisJobConfig riskJob) {
    this.riskJob = riskJob;
    return this;
  }

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

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

}
