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

com.pulumi.gcp.bigquery.kotlin.outputs.TableTableConstraintsForeignKey.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.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property columnReferences The pair of the foreign key column and primary key column.
 * Structure is documented below.
 * @property name Set only if the foreign key constraint is named.
 * @property referencedTable The table that holds the primary key
 * and is referenced by this foreign key.
 * Structure is documented below.
 */
public data class TableTableConstraintsForeignKey(
    public val columnReferences: TableTableConstraintsForeignKeyColumnReferences,
    public val name: String? = null,
    public val referencedTable: TableTableConstraintsForeignKeyReferencedTable,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.TableTableConstraintsForeignKey): TableTableConstraintsForeignKey = TableTableConstraintsForeignKey(
            columnReferences = javaType.columnReferences().let({ args0 ->
                com.pulumi.gcp.bigquery.kotlin.outputs.TableTableConstraintsForeignKeyColumnReferences.Companion.toKotlin(args0)
            }),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            referencedTable = javaType.referencedTable().let({ args0 ->
                com.pulumi.gcp.bigquery.kotlin.outputs.TableTableConstraintsForeignKeyReferencedTable.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy