com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfig.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.String
import kotlin.Suppress
/**
*
* @property mysqlSourceConfig MySQL data source configuration.
* Structure is documented below.
* @property oracleSourceConfig MySQL data source configuration.
* Structure is documented below.
* @property postgresqlSourceConfig PostgreSQL data source configuration.
* Structure is documented below.
* @property sourceConnectionProfile Source connection profile resource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}
* @property sqlServerSourceConfig SQL Server data source configuration.
* Structure is documented below.
*/
public data class StreamSourceConfig(
public val mysqlSourceConfig: StreamSourceConfigMysqlSourceConfig? = null,
public val oracleSourceConfig: StreamSourceConfigOracleSourceConfig? = null,
public val postgresqlSourceConfig: StreamSourceConfigPostgresqlSourceConfig? = null,
public val sourceConnectionProfile: String,
public val sqlServerSourceConfig: StreamSourceConfigSqlServerSourceConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.datastream.outputs.StreamSourceConfig): StreamSourceConfig = StreamSourceConfig(
mysqlSourceConfig = javaType.mysqlSourceConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigMysqlSourceConfig.Companion.toKotlin(args0)
})
}).orElse(null),
oracleSourceConfig = javaType.oracleSourceConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigOracleSourceConfig.Companion.toKotlin(args0)
})
}).orElse(null),
postgresqlSourceConfig = javaType.postgresqlSourceConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigPostgresqlSourceConfig.Companion.toKotlin(args0)
})
}).orElse(null),
sourceConnectionProfile = javaType.sourceConnectionProfile(),
sqlServerSourceConfig = javaType.sqlServerSourceConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigSqlServerSourceConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy