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

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayBackendHttpSettingConnectionDrainingArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewayBackendHttpSettingConnectionDrainingArgs.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.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property drainTimeoutSec The number of seconds connection draining is active. Acceptable values are from `1` second to `3600` seconds.
 * @property enabled If connection draining is enabled or not.
 */
public data class ApplicationGatewayBackendHttpSettingConnectionDrainingArgs(
    public val drainTimeoutSec: Output,
    public val enabled: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayBackendHttpSettingConnectionDrainingArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayBackendHttpSettingConnectionDrainingArgs.builder()
            .drainTimeoutSec(drainTimeoutSec.applyValue({ args0 -> args0 }))
            .enabled(enabled.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewayBackendHttpSettingConnectionDrainingArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayBackendHttpSettingConnectionDrainingArgsBuilder internal constructor() {
    private var drainTimeoutSec: Output? = null

    private var enabled: Output? = null

    /**
     * @param value The number of seconds connection draining is active. Acceptable values are from `1` second to `3600` seconds.
     */
    @JvmName("mrwnevddfspvyrip")
    public suspend fun drainTimeoutSec(`value`: Output) {
        this.drainTimeoutSec = value
    }

    /**
     * @param value If connection draining is enabled or not.
     */
    @JvmName("kjhjpyepoqntuike")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The number of seconds connection draining is active. Acceptable values are from `1` second to `3600` seconds.
     */
    @JvmName("wqokcawjfdncgfnb")
    public suspend fun drainTimeoutSec(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.drainTimeoutSec = mapped
    }

    /**
     * @param value If connection draining is enabled or not.
     */
    @JvmName("yubhcglpgeuxmmkj")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): ApplicationGatewayBackendHttpSettingConnectionDrainingArgs =
        ApplicationGatewayBackendHttpSettingConnectionDrainingArgs(
            drainTimeoutSec = drainTimeoutSec ?: throw PulumiNullFieldException("drainTimeoutSec"),
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy