com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs.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.datastream.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property collation Column collation.
* @property column Column name.
* @property dataType The MySQL data type. Full data types list can be found here:
* https://dev.mysql.com/doc/refman/8.0/en/data-types.html
* @property length (Output)
* Column length.
* @property nullable Whether or not the column can accept a null value.
* @property ordinalPosition The ordinal position of the column in the table.
* @property primaryKey Whether or not the column represents a primary key.
*/
public data class
StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs(
public val collation: Output? = null,
public val column: Output? = null,
public val dataType: Output? = null,
public val length: Output? = null,
public val nullable: Output? = null,
public val ordinalPosition: Output? = null,
public val primaryKey: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs =
com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs.builder()
.collation(collation?.applyValue({ args0 -> args0 }))
.column(column?.applyValue({ args0 -> args0 }))
.dataType(dataType?.applyValue({ args0 -> args0 }))
.length(length?.applyValue({ args0 -> args0 }))
.nullable(nullable?.applyValue({ args0 -> args0 }))
.ordinalPosition(ordinalPosition?.applyValue({ args0 -> args0 }))
.primaryKey(primaryKey?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs].
*/
@PulumiTagMarker
public class
StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder
internal constructor() {
private var collation: Output? = null
private var column: Output? = null
private var dataType: Output? = null
private var length: Output? = null
private var nullable: Output? = null
private var ordinalPosition: Output? = null
private var primaryKey: Output? = null
/**
* @param value Column collation.
*/
@JvmName("jfbrwspuxnfwllxk")
public suspend fun collation(`value`: Output) {
this.collation = value
}
/**
* @param value Column name.
*/
@JvmName("lcexwvmuhwdfublb")
public suspend fun column(`value`: Output) {
this.column = value
}
/**
* @param value The MySQL data type. Full data types list can be found here:
* https://dev.mysql.com/doc/refman/8.0/en/data-types.html
*/
@JvmName("rtwovxotussuibco")
public suspend fun dataType(`value`: Output) {
this.dataType = value
}
/**
* @param value (Output)
* Column length.
*/
@JvmName("qhqqdunsdjikflyn")
public suspend fun length(`value`: Output) {
this.length = value
}
/**
* @param value Whether or not the column can accept a null value.
*/
@JvmName("vrhscynjeifqqeuv")
public suspend fun nullable(`value`: Output) {
this.nullable = value
}
/**
* @param value The ordinal position of the column in the table.
*/
@JvmName("wajpddngrklixqpn")
public suspend fun ordinalPosition(`value`: Output) {
this.ordinalPosition = value
}
/**
* @param value Whether or not the column represents a primary key.
*/
@JvmName("uvkeevavpwmlboav")
public suspend fun primaryKey(`value`: Output) {
this.primaryKey = value
}
/**
* @param value Column collation.
*/
@JvmName("pixbmesnilanryhj")
public suspend fun collation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.collation = mapped
}
/**
* @param value Column name.
*/
@JvmName("mbdcburcvmvyuart")
public suspend fun column(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.column = mapped
}
/**
* @param value The MySQL data type. Full data types list can be found here:
* https://dev.mysql.com/doc/refman/8.0/en/data-types.html
*/
@JvmName("hayipkhxdwynrpfc")
public suspend fun dataType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataType = mapped
}
/**
* @param value (Output)
* Column length.
*/
@JvmName("lqtxqchpqwiymjjo")
public suspend fun length(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.length = mapped
}
/**
* @param value Whether or not the column can accept a null value.
*/
@JvmName("cicbfaaqkrukdakv")
public suspend fun nullable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nullable = mapped
}
/**
* @param value The ordinal position of the column in the table.
*/
@JvmName("tigxjysnidfpajjp")
public suspend fun ordinalPosition(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ordinalPosition = mapped
}
/**
* @param value Whether or not the column represents a primary key.
*/
@JvmName("yfxcptrsysvrtiny")
public suspend fun primaryKey(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primaryKey = mapped
}
internal fun build(): StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs =
StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs(
collation = collation,
column = column,
dataType = dataType,
length = length,
nullable = nullable,
ordinalPosition = ordinalPosition,
primaryKey = primaryKey,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy