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

com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.KafkaTopicMapBatchingArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperationsmq.kotlin.inputs

import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Kafka TopicMap Batching properties
 * @property enabled The setting to enable or disable batching.
 * @property latencyMs The latency of message batching.
 * @property maxBytes The maximum bytes to send in a batch.
 * @property maxMessages The maximum messages to send in a batch.
 */
public data class KafkaTopicMapBatchingArgs(
    public val enabled: Output? = null,
    public val latencyMs: Output? = null,
    public val maxBytes: Output? = null,
    public val maxMessages: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs =
        com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .latencyMs(latencyMs?.applyValue({ args0 -> args0 }))
            .maxBytes(maxBytes?.applyValue({ args0 -> args0 }))
            .maxMessages(maxMessages?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KafkaTopicMapBatchingArgs].
 */
@PulumiTagMarker
public class KafkaTopicMapBatchingArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var latencyMs: Output? = null

    private var maxBytes: Output? = null

    private var maxMessages: Output? = null

    /**
     * @param value The setting to enable or disable batching.
     */
    @JvmName("mbajijqrchhdfnkq")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The latency of message batching.
     */
    @JvmName("ngbyrqjfuogtydmi")
    public suspend fun latencyMs(`value`: Output) {
        this.latencyMs = value
    }

    /**
     * @param value The maximum bytes to send in a batch.
     */
    @JvmName("cemacfvejjgvjhgj")
    public suspend fun maxBytes(`value`: Output) {
        this.maxBytes = value
    }

    /**
     * @param value The maximum messages to send in a batch.
     */
    @JvmName("xhgjehnmgtyrxlyu")
    public suspend fun maxMessages(`value`: Output) {
        this.maxMessages = value
    }

    /**
     * @param value The setting to enable or disable batching.
     */
    @JvmName("gmlogkqwkrskivgr")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The latency of message batching.
     */
    @JvmName("yxitgdhoxsoexhgp")
    public suspend fun latencyMs(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.latencyMs = mapped
    }

    /**
     * @param value The maximum bytes to send in a batch.
     */
    @JvmName("oykljvqevnvppwny")
    public suspend fun maxBytes(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBytes = mapped
    }

    /**
     * @param value The maximum messages to send in a batch.
     */
    @JvmName("xboihlbrolcevlkd")
    public suspend fun maxMessages(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxMessages = mapped
    }

    internal fun build(): KafkaTopicMapBatchingArgs = KafkaTopicMapBatchingArgs(
        enabled = enabled,
        latencyMs = latencyMs,
        maxBytes = maxBytes,
        maxMessages = maxMessages,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy