com.pulumi.gcp.bigquery.kotlin.inputs.TableViewArgs.kt Maven / Gradle / Ivy
@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("wirctfphtkfbmssq")
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("jcfjhjyqeqxeubbs")
public suspend fun useLegacySql(`value`: Output) {
this.useLegacySql = value
}
/**
* @param value A query that BigQuery executes when the view is referenced.
*/
@JvmName("xiwyfqmvfiexkjhh")
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("cckcplkyebwfevrm")
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,
)
}