com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersHeaderArgs.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.RulesetRuleActionParametersHeaderArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property expression Use a value dynamically determined by the Firewall Rules expression language based on Wireshark display filters. Refer to the [Firewall Rules language](https://developers.cloudflare.com/firewall/cf-firewall-language) documentation for all available fields, operators, and functions.
* @property name Name of the HTTP request header to target.
* @property operation Action to perform on the HTTP request header. Available values: `remove`, `set`, `add`.
* @property value Static value to provide as the HTTP request header value.
*/
public data class RulesetRuleActionParametersHeaderArgs(
public val expression: Output? = null,
public val name: Output? = null,
public val operation: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersHeaderArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersHeaderArgs.builder()
.expression(expression?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.operation(operation?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersHeaderArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersHeaderArgsBuilder internal constructor() {
private var expression: Output? = null
private var name: Output? = null
private var operation: Output? = null
private var `value`: Output? = null
/**
* @param value Use a value dynamically determined by the Firewall Rules expression language based on Wireshark display filters. Refer to the [Firewall Rules language](https://developers.cloudflare.com/firewall/cf-firewall-language) documentation for all available fields, operators, and functions.
*/
@JvmName("uvqwpmensbegtlkk")
public suspend fun expression(`value`: Output) {
this.expression = value
}
/**
* @param value Name of the HTTP request header to target.
*/
@JvmName("fwhpnvmkurtrohdo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Action to perform on the HTTP request header. Available values: `remove`, `set`, `add`.
*/
@JvmName("bqeellhlslkigute")
public suspend fun operation(`value`: Output) {
this.operation = value
}
/**
* @param value Static value to provide as the HTTP request header value.
*/
@JvmName("ubdxvshuswxyumkg")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Use a value dynamically determined by the Firewall Rules expression language based on Wireshark display filters. Refer to the [Firewall Rules language](https://developers.cloudflare.com/firewall/cf-firewall-language) documentation for all available fields, operators, and functions.
*/
@JvmName("obyphmqaeirthffl")
public suspend fun expression(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expression = mapped
}
/**
* @param value Name of the HTTP request header to target.
*/
@JvmName("picryeikirebipju")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Action to perform on the HTTP request header. Available values: `remove`, `set`, `add`.
*/
@JvmName("njjgsqalbiycqmia")
public suspend fun operation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.operation = mapped
}
/**
* @param value Static value to provide as the HTTP request header value.
*/
@JvmName("wksydmndpbnvcnap")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): RulesetRuleActionParametersHeaderArgs =
RulesetRuleActionParametersHeaderArgs(
expression = expression,
name = name,
operation = operation,
`value` = `value`,
)
}