com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumn.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.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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
StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumn(
public val collation: String? = null,
public val column: String? = null,
public val dataType: String? = null,
public val length: Int? = null,
public val nullable: Boolean? = null,
public val ordinalPosition: Int? = null,
public val primaryKey: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.datastream.outputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumn): StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumn =
StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableMysqlColumn(
collation = javaType.collation().map({ args0 -> args0 }).orElse(null),
column = javaType.column().map({ args0 -> args0 }).orElse(null),
dataType = javaType.dataType().map({ args0 -> args0 }).orElse(null),
length = javaType.length().map({ args0 -> args0 }).orElse(null),
nullable = javaType.nullable().map({ args0 -> args0 }).orElse(null),
ordinalPosition = javaType.ordinalPosition().map({ args0 -> args0 }).orElse(null),
primaryKey = javaType.primaryKey().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy