All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorCapacityArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kafkaconnect.kotlin.inputs

import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCapacityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Information about the capacity allocated to the connector.
 * @property autoScaling Information about the auto scaling parameters for the connector.
 * @property provisionedCapacity Details about a fixed capacity allocated to a connector.
 */
public data class ConnectorCapacityArgs(
    public val autoScaling: Output? = null,
    public val provisionedCapacity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCapacityArgs =
        com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCapacityArgs.builder()
            .autoScaling(autoScaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .provisionedCapacity(
                provisionedCapacity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectorCapacityArgs].
 */
@PulumiTagMarker
public class ConnectorCapacityArgsBuilder internal constructor() {
    private var autoScaling: Output? = null

    private var provisionedCapacity: Output? = null

    /**
     * @param value Information about the auto scaling parameters for the connector.
     */
    @JvmName("ynoqsmsiammtwpue")
    public suspend fun autoScaling(`value`: Output) {
        this.autoScaling = value
    }

    /**
     * @param value Details about a fixed capacity allocated to a connector.
     */
    @JvmName("dihdwjlbvkmuwuwl")
    public suspend fun provisionedCapacity(`value`: Output) {
        this.provisionedCapacity = value
    }

    /**
     * @param value Information about the auto scaling parameters for the connector.
     */
    @JvmName("xvboqcohbrdusffd")
    public suspend fun autoScaling(`value`: ConnectorAutoScalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoScaling = mapped
    }

    /**
     * @param argument Information about the auto scaling parameters for the connector.
     */
    @JvmName("nynvjjrwyaedhuss")
    public suspend fun autoScaling(argument: suspend ConnectorAutoScalingArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorAutoScalingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.autoScaling = mapped
    }

    /**
     * @param value Details about a fixed capacity allocated to a connector.
     */
    @JvmName("bhfsrsdimcchnmju")
    public suspend fun provisionedCapacity(`value`: ConnectorProvisionedCapacityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionedCapacity = mapped
    }

    /**
     * @param argument Details about a fixed capacity allocated to a connector.
     */
    @JvmName("kfrkkwgpisilrryy")
    public suspend fun provisionedCapacity(argument: suspend ConnectorProvisionedCapacityArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorProvisionedCapacityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.provisionedCapacity = mapped
    }

    internal fun build(): ConnectorCapacityArgs = ConnectorCapacityArgs(
        autoScaling = autoScaling,
        provisionedCapacity = provisionedCapacity,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy