/*
 * 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.dataform.v1beta1.model;

/**
 * Configures workspace compilation overrides for a repository. Primarily used by the UI
 * (`console.cloud.google.com`). `schema_suffix` and `table_prefix` can have a special expression -
 * `${workspaceName}`, which refers to the workspace name from which the compilation results will be
 * created. API callers are expected to resolve the expression in these overrides and provide them
 * explicitly in `code_compilation_config` (https://cloud.google.com/dataform/reference/rest/v1beta1
 * /projects.locations.repositories.compilationResults#codecompilationconfig) when creating
 * workspace-scoped compilation results.
 *
 * <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 Dataform 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 WorkspaceCompilationOverrides extends com.google.api.client.json.GenericJson {

  /**
   * Optional. The default database (Google Cloud project ID).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String defaultDatabase;

  /**
   * Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String schemaSuffix;

  /**
   * Optional. The prefix that should be prepended to all table names.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String tablePrefix;

  /**
   * Optional. The default database (Google Cloud project ID).
   * @return value or {@code null} for none
   */
  public java.lang.String getDefaultDatabase() {
    return defaultDatabase;
  }

  /**
   * Optional. The default database (Google Cloud project ID).
   * @param defaultDatabase defaultDatabase or {@code null} for none
   */
  public WorkspaceCompilationOverrides setDefaultDatabase(java.lang.String defaultDatabase) {
    this.defaultDatabase = defaultDatabase;
    return this;
  }

  /**
   * Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
   * @return value or {@code null} for none
   */
  public java.lang.String getSchemaSuffix() {
    return schemaSuffix;
  }

  /**
   * Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
   * @param schemaSuffix schemaSuffix or {@code null} for none
   */
  public WorkspaceCompilationOverrides setSchemaSuffix(java.lang.String schemaSuffix) {
    this.schemaSuffix = schemaSuffix;
    return this;
  }

  /**
   * Optional. The prefix that should be prepended to all table names.
   * @return value or {@code null} for none
   */
  public java.lang.String getTablePrefix() {
    return tablePrefix;
  }

  /**
   * Optional. The prefix that should be prepended to all table names.
   * @param tablePrefix tablePrefix or {@code null} for none
   */
  public WorkspaceCompilationOverrides setTablePrefix(java.lang.String tablePrefix) {
    this.tablePrefix = tablePrefix;
    return this;
  }

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

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

}
