// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.gcp.dataform.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RepositoryWorkspaceCompilationOverrides {
    /**
     * @return Optional. The default database (Google Cloud project ID).
     * 
     */
    private @Nullable String defaultDatabase;
    /**
     * @return Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
     * 
     */
    private @Nullable String schemaSuffix;
    /**
     * @return Optional. The prefix that should be prepended to all table names.
     * 
     */
    private @Nullable String tablePrefix;

    private RepositoryWorkspaceCompilationOverrides() {}
    /**
     * @return Optional. The default database (Google Cloud project ID).
     * 
     */
    public Optional<String> defaultDatabase() {
        return Optional.ofNullable(this.defaultDatabase);
    }
    /**
     * @return Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
     * 
     */
    public Optional<String> schemaSuffix() {
        return Optional.ofNullable(this.schemaSuffix);
    }
    /**
     * @return Optional. The prefix that should be prepended to all table names.
     * 
     */
    public Optional<String> tablePrefix() {
        return Optional.ofNullable(this.tablePrefix);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RepositoryWorkspaceCompilationOverrides defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String defaultDatabase;
        private @Nullable String schemaSuffix;
        private @Nullable String tablePrefix;
        public Builder() {}
        public Builder(RepositoryWorkspaceCompilationOverrides defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultDatabase = defaults.defaultDatabase;
    	      this.schemaSuffix = defaults.schemaSuffix;
    	      this.tablePrefix = defaults.tablePrefix;
        }

        @CustomType.Setter
        public Builder defaultDatabase(@Nullable String defaultDatabase) {
            this.defaultDatabase = defaultDatabase;
            return this;
        }
        @CustomType.Setter
        public Builder schemaSuffix(@Nullable String schemaSuffix) {
            this.schemaSuffix = schemaSuffix;
            return this;
        }
        @CustomType.Setter
        public Builder tablePrefix(@Nullable String tablePrefix) {
            this.tablePrefix = tablePrefix;
            return this;
        }
        public RepositoryWorkspaceCompilationOverrides build() {
            final var o = new RepositoryWorkspaceCompilationOverrides();
            o.defaultDatabase = defaultDatabase;
            o.schemaSuffix = schemaSuffix;
            o.tablePrefix = tablePrefix;
            return o;
        }
    }
}
