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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.WebhookThrottleConfigPatchArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigPatchArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * WebhookThrottleConfig holds the configuration for throttling events
 * @property burst ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
 * @property qps ThrottleQPS maximum number of batches per second default 10 QPS
 */
public data class WebhookThrottleConfigPatchArgs(
    public val burst: Output? = null,
    public val qps: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigPatchArgs =
        com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigPatchArgs.builder()
            .burst(burst?.applyValue({ args0 -> args0 }))
            .qps(qps?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WebhookThrottleConfigPatchArgs].
 */
@PulumiTagMarker
public class WebhookThrottleConfigPatchArgsBuilder internal constructor() {
    private var burst: Output? = null

    private var qps: Output? = null

    /**
     * @param value ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     */
    @JvmName("jgkwneiyxsjmhtgc")
    public suspend fun burst(`value`: Output) {
        this.burst = value
    }

    /**
     * @param value ThrottleQPS maximum number of batches per second default 10 QPS
     */
    @JvmName("mvcduawixxdfnnqf")
    public suspend fun qps(`value`: Output) {
        this.qps = value
    }

    /**
     * @param value ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     */
    @JvmName("sdepqahgutmthugl")
    public suspend fun burst(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.burst = mapped
    }

    /**
     * @param value ThrottleQPS maximum number of batches per second default 10 QPS
     */
    @JvmName("jftsnsplgnovwbhb")
    public suspend fun qps(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qps = mapped
    }

    internal fun build(): WebhookThrottleConfigPatchArgs = WebhookThrottleConfigPatchArgs(
        burst = burst,
        qps = qps,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy