com.pulumi.gcp.bigquery.kotlin.inputs.TableTableConstraintsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.TableTableConstraintsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property foreignKeys Present only if the table has a foreign key.
* The foreign key is not enforced.
* Structure is documented below.
* @property primaryKey Represents the primary key constraint
* on a table's columns. Present only if the table has a primary key.
* The primary key is not enforced.
* Structure is documented below.
*/
public data class TableTableConstraintsArgs(
public val foreignKeys: Output>? = null,
public val primaryKey: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableTableConstraintsArgs =
com.pulumi.gcp.bigquery.inputs.TableTableConstraintsArgs.builder()
.foreignKeys(
foreignKeys?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.primaryKey(primaryKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TableTableConstraintsArgs].
*/
@PulumiTagMarker
public class TableTableConstraintsArgsBuilder internal constructor() {
private var foreignKeys: Output>? = null
private var primaryKey: Output? = null
/**
* @param value Present only if the table has a foreign key.
* The foreign key is not enforced.
* Structure is documented below.
*/
@JvmName("cvlqicvvngekilgj")
public suspend fun foreignKeys(`value`: Output>) {
this.foreignKeys = value
}
@JvmName("nwciycuwoewpfnft")
public suspend fun foreignKeys(vararg values: Output) {
this.foreignKeys = Output.all(values.asList())
}
/**
* @param values Present only if the table has a foreign key.
* The foreign key is not enforced.
* Structure is documented below.
*/
@JvmName("fboqmbqsfbxcnoqr")
public suspend fun foreignKeys(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy