All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.bigquery.kotlin.inputs.TableViewArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.TableViewArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property query A query that BigQuery executes when the view is referenced.
 * @property useLegacySql Specifies whether to use BigQuery's legacy SQL for this view.
 * The default value is true. If set to false, the view will use BigQuery's standard SQL.
 */
public data class TableViewArgs(
    public val query: Output,
    public val useLegacySql: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableViewArgs =
        com.pulumi.gcp.bigquery.inputs.TableViewArgs.builder()
            .query(query.applyValue({ args0 -> args0 }))
            .useLegacySql(useLegacySql?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableViewArgs].
 */
@PulumiTagMarker
public class TableViewArgsBuilder internal constructor() {
    private var query: Output? = null

    private var useLegacySql: Output? = null

    /**
     * @param value A query that BigQuery executes when the view is referenced.
     */
    @JvmName("boerfkfiqgwkhgwl")
    public suspend fun query(`value`: Output) {
        this.query = value
    }

    /**
     * @param value Specifies whether to use BigQuery's legacy SQL for this view.
     * The default value is true. If set to false, the view will use BigQuery's standard SQL.
     */
    @JvmName("pklovfyaycvbxwfd")
    public suspend fun useLegacySql(`value`: Output) {
        this.useLegacySql = value
    }

    /**
     * @param value A query that BigQuery executes when the view is referenced.
     */
    @JvmName("jghvcfjablegmrom")
    public suspend fun query(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.query = mapped
    }

    /**
     * @param value Specifies whether to use BigQuery's legacy SQL for this view.
     * The default value is true. If set to false, the view will use BigQuery's standard SQL.
     */
    @JvmName("yxmuqwomiojecrhm")
    public suspend fun useLegacySql(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useLegacySql = mapped
    }

    internal fun build(): TableViewArgs = TableViewArgs(
        query = query ?: throw PulumiNullFieldException("query"),
        useLegacySql = useLegacySql,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy