/*
 * 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.firebaseappcheck.v1beta.model;

/**
 * A *debug token* is a secret used during the development or integration testing of an app. It
 * essentially allows the development or integration testing to bypass app attestation while still
 * allowing App Check to enforce protection on supported production Firebase services.
 *
 * <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 Firebase App Check 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 GoogleFirebaseAppcheckV1betaDebugToken extends com.google.api.client.json.GenericJson {

  /**
   * Required. A human readable display name used to identify this debug token.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Required. The relative resource name of the debug token, in the format: ```
   * projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ```
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Required. Input only. Immutable. The secret token itself. Must be provided during creation, and
   * must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided
   * during an UpdateDebugToken request. You can, however, delete this debug token using
   * DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any
   * response.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String token;

  /**
   * Required. A human readable display name used to identify this debug token.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Required. A human readable display name used to identify this debug token.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaDebugToken setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Required. The relative resource name of the debug token, in the format: ```
   * projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ```
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Required. The relative resource name of the debug token, in the format: ```
   * projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ```
   * @param name name or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaDebugToken setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Required. Input only. Immutable. The secret token itself. Must be provided during creation, and
   * must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided
   * during an UpdateDebugToken request. You can, however, delete this debug token using
   * DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any
   * response.
   * @return value or {@code null} for none
   */
  public java.lang.String getToken() {
    return token;
  }

  /**
   * Required. Input only. Immutable. The secret token itself. Must be provided during creation, and
   * must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided
   * during an UpdateDebugToken request. You can, however, delete this debug token using
   * DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any
   * response.
   * @param token token or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaDebugToken setToken(java.lang.String token) {
    this.token = token;
    return this;
  }

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

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

}
