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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.WebhookPatchArgs.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.kotlin.applySuspend
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Webhook holds the configuration of the webhook
 * @property clientConfig ClientConfig holds the connection parameters for the webhook required
 * @property throttle Throttle holds the options for throttling the webhook
 */
public data class WebhookPatchArgs(
    public val clientConfig: Output? = null,
    public val throttle: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookPatchArgs =
        com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookPatchArgs.builder()
            .clientConfig(clientConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .throttle(throttle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [WebhookPatchArgs].
 */
@PulumiTagMarker
public class WebhookPatchArgsBuilder internal constructor() {
    private var clientConfig: Output? = null

    private var throttle: Output? = null

    /**
     * @param value ClientConfig holds the connection parameters for the webhook required
     */
    @JvmName("guqqwacbotpbddal")
    public suspend fun clientConfig(`value`: Output) {
        this.clientConfig = value
    }

    /**
     * @param value Throttle holds the options for throttling the webhook
     */
    @JvmName("xgawxskpkprasjse")
    public suspend fun throttle(`value`: Output) {
        this.throttle = value
    }

    /**
     * @param value ClientConfig holds the connection parameters for the webhook required
     */
    @JvmName("hbixneqekimkflpc")
    public suspend fun clientConfig(`value`: WebhookClientConfigPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientConfig = mapped
    }

    /**
     * @param argument ClientConfig holds the connection parameters for the webhook required
     */
    @JvmName("akdviuoapupsiicr")
    public suspend fun clientConfig(argument: suspend WebhookClientConfigPatchArgsBuilder.() -> Unit) {
        val toBeMapped = WebhookClientConfigPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.clientConfig = mapped
    }

    /**
     * @param value Throttle holds the options for throttling the webhook
     */
    @JvmName("shtmpatbuermgxjg")
    public suspend fun throttle(`value`: WebhookThrottleConfigPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.throttle = mapped
    }

    /**
     * @param argument Throttle holds the options for throttling the webhook
     */
    @JvmName("nvohltevqqddrynb")
    public suspend fun throttle(argument: suspend WebhookThrottleConfigPatchArgsBuilder.() -> Unit) {
        val toBeMapped = WebhookThrottleConfigPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.throttle = mapped
    }

    internal fun build(): WebhookPatchArgs = WebhookPatchArgs(
        clientConfig = clientConfig,
        throttle = throttle,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy