
com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorProvisionedCapacityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kafkaconnect.kotlin.inputs
import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorProvisionedCapacityArgs.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 kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Details about a fixed capacity allocated to a connector.
* @property mcuCount Specifies how many MSK Connect Units (MCU) are allocated to the connector.
* @property workerCount Number of workers for a connector.
*/
public data class ConnectorProvisionedCapacityArgs(
public val mcuCount: Output? = null,
public val workerCount: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorProvisionedCapacityArgs =
com.pulumi.awsnative.kafkaconnect.inputs.ConnectorProvisionedCapacityArgs.builder()
.mcuCount(mcuCount?.applyValue({ args0 -> args0 }))
.workerCount(workerCount.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectorProvisionedCapacityArgs].
*/
@PulumiTagMarker
public class ConnectorProvisionedCapacityArgsBuilder internal constructor() {
private var mcuCount: Output? = null
private var workerCount: Output? = null
/**
* @param value Specifies how many MSK Connect Units (MCU) are allocated to the connector.
*/
@JvmName("begreiovcruoshnl")
public suspend fun mcuCount(`value`: Output) {
this.mcuCount = value
}
/**
* @param value Number of workers for a connector.
*/
@JvmName("mvipjhwvhimgmcxx")
public suspend fun workerCount(`value`: Output) {
this.workerCount = value
}
/**
* @param value Specifies how many MSK Connect Units (MCU) are allocated to the connector.
*/
@JvmName("pxqjwjqyaninvgud")
public suspend fun mcuCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mcuCount = mapped
}
/**
* @param value Number of workers for a connector.
*/
@JvmName("rikokbcwphgivlri")
public suspend fun workerCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.workerCount = mapped
}
internal fun build(): ConnectorProvisionedCapacityArgs = ConnectorProvisionedCapacityArgs(
mcuCount = mcuCount,
workerCount = workerCount ?: throw PulumiNullFieldException("workerCount"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy