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

com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs.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: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property checkPresences List of headers to check for presence in the custom key.
 * @property contains Dictionary of headers mapping to lists of values to check for presence in the custom key.
 * @property excludeOrigin Exclude the origin header from the custom key.
 * @property includes List of headers to include in the custom key.
 */
public data class RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs(
    public val checkPresences: Output>? = null,
    public val contains: Output>>? = null,
    public val excludeOrigin: Output? = null,
    public val includes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs =
        com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs.builder()
            .checkPresences(checkPresences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .contains(
                contains?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.map({ args0 -> args0 }))
                    }).toMap()
                }),
            )
            .excludeOrigin(excludeOrigin?.applyValue({ args0 -> args0 }))
            .includes(includes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs].
 */
@PulumiTagMarker
public class RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgsBuilder internal constructor() {
    private var checkPresences: Output>? = null

    private var contains: Output>>? = null

    private var excludeOrigin: Output? = null

    private var includes: Output>? = null

    /**
     * @param value List of headers to check for presence in the custom key.
     */
    @JvmName("abuijorwvnosqtur")
    public suspend fun checkPresences(`value`: Output>) {
        this.checkPresences = value
    }

    @JvmName("xxxwhrtbyxejarxs")
    public suspend fun checkPresences(vararg values: Output) {
        this.checkPresences = Output.all(values.asList())
    }

    /**
     * @param values List of headers to check for presence in the custom key.
     */
    @JvmName("ysqjwvhpvivspdrj")
    public suspend fun checkPresences(values: List>) {
        this.checkPresences = Output.all(values)
    }

    /**
     * @param value Dictionary of headers mapping to lists of values to check for presence in the custom key.
     */
    @JvmName("scovarqxcfedcxhl")
    public suspend fun contains(`value`: Output>>) {
        this.contains = value
    }

    /**
     * @param value Exclude the origin header from the custom key.
     */
    @JvmName("fxddjwjshfiosdua")
    public suspend fun excludeOrigin(`value`: Output) {
        this.excludeOrigin = value
    }

    /**
     * @param value List of headers to include in the custom key.
     */
    @JvmName("gmewoveielbwiyxx")
    public suspend fun includes(`value`: Output>) {
        this.includes = value
    }

    @JvmName("wijjhbcktwfyjkfo")
    public suspend fun includes(vararg values: Output) {
        this.includes = Output.all(values.asList())
    }

    /**
     * @param values List of headers to include in the custom key.
     */
    @JvmName("xkvvinbtjuexrsat")
    public suspend fun includes(values: List>) {
        this.includes = Output.all(values)
    }

    /**
     * @param value List of headers to check for presence in the custom key.
     */
    @JvmName("stlmkvoxkssravhw")
    public suspend fun checkPresences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.checkPresences = mapped
    }

    /**
     * @param values List of headers to check for presence in the custom key.
     */
    @JvmName("vihfhhjpaqhjntqu")
    public suspend fun checkPresences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.checkPresences = mapped
    }

    /**
     * @param value Dictionary of headers mapping to lists of values to check for presence in the custom key.
     */
    @JvmName("djxeuqqumjkpubba")
    public suspend fun contains(`value`: Map>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contains = mapped
    }

    /**
     * @param values Dictionary of headers mapping to lists of values to check for presence in the custom key.
     */
    @JvmName("aijmxevryghsspcr")
    public fun contains(vararg values: Pair>) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contains = mapped
    }

    /**
     * @param value Exclude the origin header from the custom key.
     */
    @JvmName("npbhduivmmnwiegl")
    public suspend fun excludeOrigin(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludeOrigin = mapped
    }

    /**
     * @param value List of headers to include in the custom key.
     */
    @JvmName("kxsvfchgrfmxyyil")
    public suspend fun includes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    /**
     * @param values List of headers to include in the custom key.
     */
    @JvmName("hcublgwdvhqkpmcf")
    public suspend fun includes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    internal fun build(): RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs =
        RulesetRuleActionParametersCacheKeyCustomKeyHeaderArgs(
            checkPresences = checkPresences,
            contains = contains,
            excludeOrigin = excludeOrigin,
            includes = includes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy