/*
 * 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.checks.v1alpha.model;

/**
 * Privacy report.
 *
 * <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 Checks 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 GoogleChecksReportV1alphaReport extends com.google.api.client.json.GenericJson {

  /**
   * Information about the analyzed app bundle.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleChecksReportV1alphaAppBundle appBundle;

  /**
   * Resource name of the base report used for comparison. May be absent if this is the first report
   * generated for the app.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String baseReport;

  /**
   * List of checks that were run on the app bundle.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleChecksReportV1alphaCheck> checks;

  static {
    // hack to force ProGuard to consider GoogleChecksReportV1alphaCheck used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(GoogleChecksReportV1alphaCheck.class);
  }

  /**
   * Information related to data monitoring.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleChecksReportV1alphaDataMonitoring dataMonitoring;

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

  /**
   * A URL to view results.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resultsUri;

  /**
   * Information about the analyzed app bundle.
   * @return value or {@code null} for none
   */
  public GoogleChecksReportV1alphaAppBundle getAppBundle() {
    return appBundle;
  }

  /**
   * Information about the analyzed app bundle.
   * @param appBundle appBundle or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setAppBundle(GoogleChecksReportV1alphaAppBundle appBundle) {
    this.appBundle = appBundle;
    return this;
  }

  /**
   * Resource name of the base report used for comparison. May be absent if this is the first report
   * generated for the app.
   * @return value or {@code null} for none
   */
  public java.lang.String getBaseReport() {
    return baseReport;
  }

  /**
   * Resource name of the base report used for comparison. May be absent if this is the first report
   * generated for the app.
   * @param baseReport baseReport or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setBaseReport(java.lang.String baseReport) {
    this.baseReport = baseReport;
    return this;
  }

  /**
   * List of checks that were run on the app bundle.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleChecksReportV1alphaCheck> getChecks() {
    return checks;
  }

  /**
   * List of checks that were run on the app bundle.
   * @param checks checks or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setChecks(java.util.List<GoogleChecksReportV1alphaCheck> checks) {
    this.checks = checks;
    return this;
  }

  /**
   * Information related to data monitoring.
   * @return value or {@code null} for none
   */
  public GoogleChecksReportV1alphaDataMonitoring getDataMonitoring() {
    return dataMonitoring;
  }

  /**
   * Information related to data monitoring.
   * @param dataMonitoring dataMonitoring or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setDataMonitoring(GoogleChecksReportV1alphaDataMonitoring dataMonitoring) {
    this.dataMonitoring = dataMonitoring;
    return this;
  }

  /**
   * Resource name of the report.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Resource name of the report.
   * @param name name or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * A URL to view results.
   * @return value or {@code null} for none
   */
  public java.lang.String getResultsUri() {
    return resultsUri;
  }

  /**
   * A URL to view results.
   * @param resultsUri resultsUri or {@code null} for none
   */
  public GoogleChecksReportV1alphaReport setResultsUri(java.lang.String resultsUri) {
    this.resultsUri = resultsUri;
    return this;
  }

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

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

}
