com.pulumi.gcp.bigquery.kotlin.inputs.TableTableConstraintsForeignKeyColumnReferencesArgs.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.TableTableConstraintsForeignKeyColumnReferencesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property referencedColumn The column in the primary key that are
* referenced by the referencingColumn
* @property referencingColumn The column that composes the foreign key.
*/
public data class TableTableConstraintsForeignKeyColumnReferencesArgs(
public val referencedColumn: Output,
public val referencingColumn: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableTableConstraintsForeignKeyColumnReferencesArgs =
com.pulumi.gcp.bigquery.inputs.TableTableConstraintsForeignKeyColumnReferencesArgs.builder()
.referencedColumn(referencedColumn.applyValue({ args0 -> args0 }))
.referencingColumn(referencingColumn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableTableConstraintsForeignKeyColumnReferencesArgs].
*/
@PulumiTagMarker
public class TableTableConstraintsForeignKeyColumnReferencesArgsBuilder internal constructor() {
private var referencedColumn: Output? = null
private var referencingColumn: Output? = null
/**
* @param value The column in the primary key that are
* referenced by the referencingColumn
*/
@JvmName("hcxkuacwjtpnwdrj")
public suspend fun referencedColumn(`value`: Output) {
this.referencedColumn = value
}
/**
* @param value The column that composes the foreign key.
*/
@JvmName("tvojkwcjbrqkbvqg")
public suspend fun referencingColumn(`value`: Output) {
this.referencingColumn = value
}
/**
* @param value The column in the primary key that are
* referenced by the referencingColumn
*/
@JvmName("yebgwqvmrrmkogdm")
public suspend fun referencedColumn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.referencedColumn = mapped
}
/**
* @param value The column that composes the foreign key.
*/
@JvmName("cujpsgjmkimhlpfn")
public suspend fun referencingColumn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.referencingColumn = mapped
}
internal fun build(): TableTableConstraintsForeignKeyColumnReferencesArgs =
TableTableConstraintsForeignKeyColumnReferencesArgs(
referencedColumn = referencedColumn ?: throw PulumiNullFieldException("referencedColumn"),
referencingColumn = referencingColumn ?: throw PulumiNullFieldException("referencingColumn"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy