com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersCacheKeyCustomKeyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyArgs.builder
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 kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property cookie Cookie parameters for the custom key.
* @property header Header parameters for the custom key.
* @property host Host parameters for the custom key.
* @property queryString Query string parameters for the custom key.
* @property user User parameters for the custom key.
*/
public data class RulesetRuleActionParametersCacheKeyCustomKeyArgs(
public val cookie: Output? = null,
public val `header`: Output? = null,
public val host: Output? = null,
public val queryString: Output? =
null,
public val user: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyArgs.builder()
.cookie(cookie?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`header`(`header`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.host(host?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.queryString(queryString?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.user(user?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RulesetRuleActionParametersCacheKeyCustomKeyArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersCacheKeyCustomKeyArgsBuilder internal constructor() {
private var cookie: Output? = null
private var `header`: Output? = null
private var host: Output? = null
private var queryString: Output? =
null
private var user: Output? = null
/**
* @param value Cookie parameters for the custom key.
*/
@JvmName("gmequoquxdqrahag")
public suspend fun cookie(`value`: Output) {
this.cookie = value
}
/**
* @param value Header parameters for the custom key.
*/
@JvmName("vnptexflplstdusy")
public suspend fun `header`(`value`: Output) {
this.`header` = value
}
/**
* @param value Host parameters for the custom key.
*/
@JvmName("nsbhnyrpsbktuwld")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Query string parameters for the custom key.
*/
@JvmName("gmebarowonmvpsqv")
public suspend fun queryString(`value`: Output) {
this.queryString = value
}
/**
* @param value User parameters for the custom key.
*/
@JvmName("jfqkgosijayimlsv")
public suspend fun user(`value`: Output) {
this.user = value
}
/**
* @param value Cookie parameters for the custom key.
*/
@JvmName("huccmteuputbnqmu")
public suspend fun cookie(`value`: RulesetRuleActionParametersCacheKeyCustomKeyCookieArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cookie = mapped
}
/**
* @param argument Cookie parameters for the custom key.
*/
@JvmName("rboxnumlvoeccbeq")
public suspend fun cookie(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyCookieArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersCacheKeyCustomKeyCookieArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.cookie = mapped
}
/**
* @param value Header parameters for the custom key.
*/
@JvmName("uxfrueelsiwvblkq")
public suspend fun `header`(`value`: RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`header` = mapped
}
/**
* @param argument Header parameters for the custom key.
*/
@JvmName("ifkefmbbioxpvkwu")
public suspend fun `header`(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.`header` = mapped
}
/**
* @param value Host parameters for the custom key.
*/
@JvmName("oxhmfstsrdcbchxo")
public suspend fun host(`value`: RulesetRuleActionParametersCacheKeyCustomKeyHostArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param argument Host parameters for the custom key.
*/
@JvmName("qpvpwujfvuohdulv")
public suspend fun host(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyHostArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersCacheKeyCustomKeyHostArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.host = mapped
}
/**
* @param value Query string parameters for the custom key.
*/
@JvmName("caauaxvtqjeofqjl")
public suspend fun queryString(`value`: RulesetRuleActionParametersCacheKeyCustomKeyQueryStringArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queryString = mapped
}
/**
* @param argument Query string parameters for the custom key.
*/
@JvmName("shccnfegbtjvcdqr")
public suspend fun queryString(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyQueryStringArgsBuilder.() -> Unit) {
val toBeMapped =
RulesetRuleActionParametersCacheKeyCustomKeyQueryStringArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.queryString = mapped
}
/**
* @param value User parameters for the custom key.
*/
@JvmName("wnrcsyuhcjtqaibc")
public suspend fun user(`value`: RulesetRuleActionParametersCacheKeyCustomKeyUserArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.user = mapped
}
/**
* @param argument User parameters for the custom key.
*/
@JvmName("ltawunqdquqgrfhe")
public suspend fun user(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyUserArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersCacheKeyCustomKeyUserArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.user = mapped
}
internal fun build(): RulesetRuleActionParametersCacheKeyCustomKeyArgs =
RulesetRuleActionParametersCacheKeyCustomKeyArgs(
cookie = cookie,
`header` = `header`,
host = host,
queryString = queryString,
user = user,
)
}