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

com.pulumi.cloudflare.kotlin.inputs.PageRuleActionsCacheKeyFieldsHeaderArgs.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.PageRuleActionsCacheKeyFieldsHeaderArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property checkPresences Check for presence of specified HTTP headers, without including their actual values.
 * @property excludes Exclude these HTTP headers from Cache Key. Currently, only the `Origin` header can be excluded.
 * @property includes Use values of specified HTTP headers in Cache Key. Please refer to [Support article](https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys) for the list of HTTP headers that cannot be included. The `Origin` header is always included unless explicitly excluded.
 */
public data class PageRuleActionsCacheKeyFieldsHeaderArgs(
    public val checkPresences: Output>? = null,
    public val excludes: Output>? = null,
    public val includes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.PageRuleActionsCacheKeyFieldsHeaderArgs =
        com.pulumi.cloudflare.inputs.PageRuleActionsCacheKeyFieldsHeaderArgs.builder()
            .checkPresences(checkPresences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .excludes(excludes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includes(includes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var excludes: Output>? = null

    private var includes: Output>? = null

    /**
     * @param value Check for presence of specified HTTP headers, without including their actual values.
     */
    @JvmName("xbatnobwhsnmkyrc")
    public suspend fun checkPresences(`value`: Output>) {
        this.checkPresences = value
    }

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

    /**
     * @param values Check for presence of specified HTTP headers, without including their actual values.
     */
    @JvmName("fgbgcxuvtrckickc")
    public suspend fun checkPresences(values: List>) {
        this.checkPresences = Output.all(values)
    }

    /**
     * @param value Exclude these HTTP headers from Cache Key. Currently, only the `Origin` header can be excluded.
     */
    @JvmName("qkiausoqxuucysjv")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

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

    /**
     * @param values Exclude these HTTP headers from Cache Key. Currently, only the `Origin` header can be excluded.
     */
    @JvmName("lnqcmvoxylmatacg")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value Use values of specified HTTP headers in Cache Key. Please refer to [Support article](https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys) for the list of HTTP headers that cannot be included. The `Origin` header is always included unless explicitly excluded.
     */
    @JvmName("kyaxjvupshtxgdhx")
    public suspend fun includes(`value`: Output>) {
        this.includes = value
    }

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

    /**
     * @param values Use values of specified HTTP headers in Cache Key. Please refer to [Support article](https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys) for the list of HTTP headers that cannot be included. The `Origin` header is always included unless explicitly excluded.
     */
    @JvmName("gcfhropakfofwnfs")
    public suspend fun includes(values: List>) {
        this.includes = Output.all(values)
    }

    /**
     * @param value Check for presence of specified HTTP headers, without including their actual values.
     */
    @JvmName("iqyawubnmsfhugeq")
    public suspend fun checkPresences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.checkPresences = mapped
    }

    /**
     * @param values Check for presence of specified HTTP headers, without including their actual values.
     */
    @JvmName("djnatybsuwmsleag")
    public suspend fun checkPresences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.checkPresences = mapped
    }

    /**
     * @param value Exclude these HTTP headers from Cache Key. Currently, only the `Origin` header can be excluded.
     */
    @JvmName("gfthikvafudhoiev")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param values Exclude these HTTP headers from Cache Key. Currently, only the `Origin` header can be excluded.
     */
    @JvmName("qqrljwdyfjoxcgeo")
    public suspend fun excludes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value Use values of specified HTTP headers in Cache Key. Please refer to [Support article](https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys) for the list of HTTP headers that cannot be included. The `Origin` header is always included unless explicitly excluded.
     */
    @JvmName("ffwmeurdacmkqgsh")
    public suspend fun includes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    /**
     * @param values Use values of specified HTTP headers in Cache Key. Please refer to [Support article](https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys) for the list of HTTP headers that cannot be included. The `Origin` header is always included unless explicitly excluded.
     */
    @JvmName("bgrhyygnmocfyqms")
    public suspend fun includes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    internal fun build(): PageRuleActionsCacheKeyFieldsHeaderArgs =
        PageRuleActionsCacheKeyFieldsHeaderArgs(
            checkPresences = checkPresences,
            excludes = excludes,
            includes = includes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy