com.pulumi.googlenative.compute.alpha.kotlin.inputs.ConnectionDrainingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.alpha.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.inputs.ConnectionDrainingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Message containing connection draining configuration.
* @property drainingTimeoutSec Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
*/
public data class ConnectionDrainingArgs(
public val drainingTimeoutSec: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.inputs.ConnectionDrainingArgs =
com.pulumi.googlenative.compute.alpha.inputs.ConnectionDrainingArgs.builder()
.drainingTimeoutSec(drainingTimeoutSec?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionDrainingArgs].
*/
@PulumiTagMarker
public class ConnectionDrainingArgsBuilder internal constructor() {
private var drainingTimeoutSec: Output? = null
/**
* @param value Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
*/
@JvmName("vttplpjoqwacmnfo")
public suspend fun drainingTimeoutSec(`value`: Output) {
this.drainingTimeoutSec = value
}
/**
* @param value Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
*/
@JvmName("injbqxhaufwsoolt")
public suspend fun drainingTimeoutSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.drainingTimeoutSec = mapped
}
internal fun build(): ConnectionDrainingArgs = ConnectionDrainingArgs(
drainingTimeoutSec = drainingTimeoutSec,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy