
com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorApacheKafkaClusterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kafkaconnect.kotlin.inputs
import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorApacheKafkaClusterArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Details of how to connect to an Apache Kafka cluster.
* @property bootstrapServers The bootstrap servers string of the Apache Kafka cluster.
* @property vpc Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
*/
public data class ConnectorApacheKafkaClusterArgs(
public val bootstrapServers: Output,
public val vpc: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorApacheKafkaClusterArgs =
com.pulumi.awsnative.kafkaconnect.inputs.ConnectorApacheKafkaClusterArgs.builder()
.bootstrapServers(bootstrapServers.applyValue({ args0 -> args0 }))
.vpc(vpc.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnectorApacheKafkaClusterArgs].
*/
@PulumiTagMarker
public class ConnectorApacheKafkaClusterArgsBuilder internal constructor() {
private var bootstrapServers: Output? = null
private var vpc: Output? = null
/**
* @param value The bootstrap servers string of the Apache Kafka cluster.
*/
@JvmName("lffjbekhngomkdqc")
public suspend fun bootstrapServers(`value`: Output) {
this.bootstrapServers = value
}
/**
* @param value Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
*/
@JvmName("fogrhbballdjsjxn")
public suspend fun vpc(`value`: Output) {
this.vpc = value
}
/**
* @param value The bootstrap servers string of the Apache Kafka cluster.
*/
@JvmName("qwsxfbkmlpgrymbs")
public suspend fun bootstrapServers(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bootstrapServers = mapped
}
/**
* @param value Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
*/
@JvmName("svkxugcwipsjtwll")
public suspend fun vpc(`value`: ConnectorVpcArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.vpc = mapped
}
/**
* @param argument Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
*/
@JvmName("sqdbsjtwxgjosejy")
public suspend fun vpc(argument: suspend ConnectorVpcArgsBuilder.() -> Unit) {
val toBeMapped = ConnectorVpcArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.vpc = mapped
}
internal fun build(): ConnectorApacheKafkaClusterArgs = ConnectorApacheKafkaClusterArgs(
bootstrapServers = bootstrapServers ?: throw PulumiNullFieldException("bootstrapServers"),
vpc = vpc ?: throw PulumiNullFieldException("vpc"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy