com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigMysqlSourceConfigArgs.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.StreamSourceConfigMysqlSourceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property excludeObjects MySQL objects to exclude from the stream.
* Structure is documented below.
* @property includeObjects MySQL objects to retrieve from the source.
* Structure is documented below.
* @property maxConcurrentBackfillTasks Maximum number of concurrent backfill tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
* @property maxConcurrentCdcTasks Maximum number of concurrent CDC tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
*/
public data class StreamSourceConfigMysqlSourceConfigArgs(
public val excludeObjects: Output? = null,
public val includeObjects: Output? = null,
public val maxConcurrentBackfillTasks: Output? = null,
public val maxConcurrentCdcTasks: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigArgs =
com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigArgs.builder()
.excludeObjects(excludeObjects?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.includeObjects(includeObjects?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxConcurrentBackfillTasks(maxConcurrentBackfillTasks?.applyValue({ args0 -> args0 }))
.maxConcurrentCdcTasks(maxConcurrentCdcTasks?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StreamSourceConfigMysqlSourceConfigArgs].
*/
@PulumiTagMarker
public class StreamSourceConfigMysqlSourceConfigArgsBuilder internal constructor() {
private var excludeObjects: Output? = null
private var includeObjects: Output? = null
private var maxConcurrentBackfillTasks: Output? = null
private var maxConcurrentCdcTasks: Output? = null
/**
* @param value MySQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("ounmpaqsfiwsmlbt")
public suspend fun excludeObjects(`value`: Output) {
this.excludeObjects = value
}
/**
* @param value MySQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("ohmknhkdarwsufib")
public suspend fun includeObjects(`value`: Output) {
this.includeObjects = value
}
/**
* @param value Maximum number of concurrent backfill tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
*/
@JvmName("fasdpptyyhjnyyrv")
public suspend fun maxConcurrentBackfillTasks(`value`: Output) {
this.maxConcurrentBackfillTasks = value
}
/**
* @param value Maximum number of concurrent CDC tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
*/
@JvmName("yxosdbrabcdbbunq")
public suspend fun maxConcurrentCdcTasks(`value`: Output) {
this.maxConcurrentCdcTasks = value
}
/**
* @param value MySQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("cjhrfvedwntpvmst")
public suspend fun excludeObjects(`value`: StreamSourceConfigMysqlSourceConfigExcludeObjectsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.excludeObjects = mapped
}
/**
* @param argument MySQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("lljivpicnwosfxey")
public suspend fun excludeObjects(argument: suspend StreamSourceConfigMysqlSourceConfigExcludeObjectsArgsBuilder.() -> Unit) {
val toBeMapped = StreamSourceConfigMysqlSourceConfigExcludeObjectsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.excludeObjects = mapped
}
/**
* @param value MySQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("xmulmtkakqivrnld")
public suspend fun includeObjects(`value`: StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.includeObjects = mapped
}
/**
* @param argument MySQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("xooacqteefprqhmj")
public suspend fun includeObjects(argument: suspend StreamSourceConfigMysqlSourceConfigIncludeObjectsArgsBuilder.() -> Unit) {
val toBeMapped = StreamSourceConfigMysqlSourceConfigIncludeObjectsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.includeObjects = mapped
}
/**
* @param value Maximum number of concurrent backfill tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
*/
@JvmName("vkbrlkhtepdnldxu")
public suspend fun maxConcurrentBackfillTasks(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentBackfillTasks = mapped
}
/**
* @param value Maximum number of concurrent CDC tasks. The number should be non negative.
* If not set (or set to 0), the system's default value will be used.
*/
@JvmName("cffrramgsbnhkyqm")
public suspend fun maxConcurrentCdcTasks(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentCdcTasks = mapped
}
internal fun build(): StreamSourceConfigMysqlSourceConfigArgs =
StreamSourceConfigMysqlSourceConfigArgs(
excludeObjects = excludeObjects,
includeObjects = includeObjects,
maxConcurrentBackfillTasks = maxConcurrentBackfillTasks,
maxConcurrentCdcTasks = maxConcurrentCdcTasks,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy