com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs.LimitResponsePatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
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.flowcontrol.v1beta3.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.flowcontrol.v1beta3.inputs.LimitResponsePatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* LimitResponse defines how to handle requests that can not be executed right now.
* @property queuing `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
* @property type `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
*/
public data class LimitResponsePatchArgs(
public val queuing: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.LimitResponsePatchArgs =
com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.LimitResponsePatchArgs.builder()
.queuing(queuing?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LimitResponsePatchArgs].
*/
@PulumiTagMarker
public class LimitResponsePatchArgsBuilder internal constructor() {
private var queuing: Output? = null
private var type: Output? = null
/**
* @param value `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
*/
@JvmName("nqaacgkpvirhypwn")
public suspend fun queuing(`value`: Output) {
this.queuing = value
}
/**
* @param value `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
*/
@JvmName("waxnpbowjpcjjlxc")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
*/
@JvmName("nntyrqffomnwdaml")
public suspend fun queuing(`value`: QueuingConfigurationPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queuing = mapped
}
/**
* @param argument `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
*/
@JvmName("difjxqxadggoqtcu")
public suspend fun queuing(argument: suspend QueuingConfigurationPatchArgsBuilder.() -> Unit) {
val toBeMapped = QueuingConfigurationPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.queuing = mapped
}
/**
* @param value `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
*/
@JvmName("qwaddgjjahuviqyp")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): LimitResponsePatchArgs = LimitResponsePatchArgs(
queuing = queuing,
type = type,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy