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

com.pulumi.gcp.compute.kotlin.inputs.BackendServiceCdnPolicyCacheKeyPolicyArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyCacheKeyPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property includeHost If true requests to different hosts will be cached separately.
 * @property includeHttpHeaders Allows HTTP request headers (by name) to be used in the
 * cache key.
 * @property includeNamedCookies Names of cookies to include in cache keys.
 * @property includeProtocol If true, http and https requests will be cached separately.
 * @property includeQueryString If true, include query string parameters in the cache key
 * according to query_string_whitelist and
 * query_string_blacklist. If neither is set, the entire query
 * string will be included.
 * If false, the query string will be excluded from the cache
 * key entirely.
 * @property queryStringBlacklists Names of query string parameters to exclude in cache keys.
 * All other parameters will be included. Either specify
 * query_string_whitelist or query_string_blacklist, not both.
 * '&' and '=' will be percent encoded and not treated as
 * delimiters.
 * @property queryStringWhitelists Names of query string parameters to include in cache keys.
 * All other parameters will be excluded. Either specify
 * query_string_whitelist or query_string_blacklist, not both.
 * '&' and '=' will be percent encoded and not treated as
 * delimiters.
 */
public data class BackendServiceCdnPolicyCacheKeyPolicyArgs(
    public val includeHost: Output? = null,
    public val includeHttpHeaders: Output>? = null,
    public val includeNamedCookies: Output>? = null,
    public val includeProtocol: Output? = null,
    public val includeQueryString: Output? = null,
    public val queryStringBlacklists: Output>? = null,
    public val queryStringWhitelists: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyCacheKeyPolicyArgs =
        com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyCacheKeyPolicyArgs.builder()
            .includeHost(includeHost?.applyValue({ args0 -> args0 }))
            .includeHttpHeaders(includeHttpHeaders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includeNamedCookies(includeNamedCookies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includeProtocol(includeProtocol?.applyValue({ args0 -> args0 }))
            .includeQueryString(includeQueryString?.applyValue({ args0 -> args0 }))
            .queryStringBlacklists(queryStringBlacklists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .queryStringWhitelists(
                queryStringWhitelists?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [BackendServiceCdnPolicyCacheKeyPolicyArgs].
 */
@PulumiTagMarker
public class BackendServiceCdnPolicyCacheKeyPolicyArgsBuilder internal constructor() {
    private var includeHost: Output? = null

    private var includeHttpHeaders: Output>? = null

    private var includeNamedCookies: Output>? = null

    private var includeProtocol: Output? = null

    private var includeQueryString: Output? = null

    private var queryStringBlacklists: Output>? = null

    private var queryStringWhitelists: Output>? = null

    /**
     * @param value If true requests to different hosts will be cached separately.
     */
    @JvmName("uaexvytngsvmelix")
    public suspend fun includeHost(`value`: Output) {
        this.includeHost = value
    }

    /**
     * @param value Allows HTTP request headers (by name) to be used in the
     * cache key.
     */
    @JvmName("wmfijnjrlqtgateh")
    public suspend fun includeHttpHeaders(`value`: Output>) {
        this.includeHttpHeaders = value
    }

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

    /**
     * @param values Allows HTTP request headers (by name) to be used in the
     * cache key.
     */
    @JvmName("wwruneqagryrjslc")
    public suspend fun includeHttpHeaders(values: List>) {
        this.includeHttpHeaders = Output.all(values)
    }

    /**
     * @param value Names of cookies to include in cache keys.
     */
    @JvmName("hkictsnshkiqxrgv")
    public suspend fun includeNamedCookies(`value`: Output>) {
        this.includeNamedCookies = value
    }

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

    /**
     * @param values Names of cookies to include in cache keys.
     */
    @JvmName("esnyeafapjvdeahw")
    public suspend fun includeNamedCookies(values: List>) {
        this.includeNamedCookies = Output.all(values)
    }

    /**
     * @param value If true, http and https requests will be cached separately.
     */
    @JvmName("trcrlycvqjnyvvrg")
    public suspend fun includeProtocol(`value`: Output) {
        this.includeProtocol = value
    }

    /**
     * @param value If true, include query string parameters in the cache key
     * according to query_string_whitelist and
     * query_string_blacklist. If neither is set, the entire query
     * string will be included.
     * If false, the query string will be excluded from the cache
     * key entirely.
     */
    @JvmName("sjbsaavcuqoqrlyi")
    public suspend fun includeQueryString(`value`: Output) {
        this.includeQueryString = value
    }

    /**
     * @param value Names of query string parameters to exclude in cache keys.
     * All other parameters will be included. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("filadpfugfkqglfl")
    public suspend fun queryStringBlacklists(`value`: Output>) {
        this.queryStringBlacklists = value
    }

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

    /**
     * @param values Names of query string parameters to exclude in cache keys.
     * All other parameters will be included. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("ukindiiakvjwtonw")
    public suspend fun queryStringBlacklists(values: List>) {
        this.queryStringBlacklists = Output.all(values)
    }

    /**
     * @param value Names of query string parameters to include in cache keys.
     * All other parameters will be excluded. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("cwpgnkpxqusxcxex")
    public suspend fun queryStringWhitelists(`value`: Output>) {
        this.queryStringWhitelists = value
    }

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

    /**
     * @param values Names of query string parameters to include in cache keys.
     * All other parameters will be excluded. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("kfaiswuqmdlvlnsp")
    public suspend fun queryStringWhitelists(values: List>) {
        this.queryStringWhitelists = Output.all(values)
    }

    /**
     * @param value If true requests to different hosts will be cached separately.
     */
    @JvmName("wqrqhsbvaviqotlj")
    public suspend fun includeHost(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeHost = mapped
    }

    /**
     * @param value Allows HTTP request headers (by name) to be used in the
     * cache key.
     */
    @JvmName("wwbsxrfptjmcsvoe")
    public suspend fun includeHttpHeaders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeHttpHeaders = mapped
    }

    /**
     * @param values Allows HTTP request headers (by name) to be used in the
     * cache key.
     */
    @JvmName("ljlorkbrmqtnlxhu")
    public suspend fun includeHttpHeaders(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeHttpHeaders = mapped
    }

    /**
     * @param value Names of cookies to include in cache keys.
     */
    @JvmName("ouhiiohigofrrjam")
    public suspend fun includeNamedCookies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeNamedCookies = mapped
    }

    /**
     * @param values Names of cookies to include in cache keys.
     */
    @JvmName("dikgwgwrxgsercax")
    public suspend fun includeNamedCookies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeNamedCookies = mapped
    }

    /**
     * @param value If true, http and https requests will be cached separately.
     */
    @JvmName("ggowlwuohpfipvrn")
    public suspend fun includeProtocol(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeProtocol = mapped
    }

    /**
     * @param value If true, include query string parameters in the cache key
     * according to query_string_whitelist and
     * query_string_blacklist. If neither is set, the entire query
     * string will be included.
     * If false, the query string will be excluded from the cache
     * key entirely.
     */
    @JvmName("dfljjahihqsijten")
    public suspend fun includeQueryString(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeQueryString = mapped
    }

    /**
     * @param value Names of query string parameters to exclude in cache keys.
     * All other parameters will be included. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("qveurvuxqevtcymf")
    public suspend fun queryStringBlacklists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringBlacklists = mapped
    }

    /**
     * @param values Names of query string parameters to exclude in cache keys.
     * All other parameters will be included. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("nkdabhifrlobtjmq")
    public suspend fun queryStringBlacklists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringBlacklists = mapped
    }

    /**
     * @param value Names of query string parameters to include in cache keys.
     * All other parameters will be excluded. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("ahonrkgfngxonoxu")
    public suspend fun queryStringWhitelists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringWhitelists = mapped
    }

    /**
     * @param values Names of query string parameters to include in cache keys.
     * All other parameters will be excluded. Either specify
     * query_string_whitelist or query_string_blacklist, not both.
     * '&' and '=' will be percent encoded and not treated as
     * delimiters.
     */
    @JvmName("ukeffhrkxplqxyqf")
    public suspend fun queryStringWhitelists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringWhitelists = mapped
    }

    internal fun build(): BackendServiceCdnPolicyCacheKeyPolicyArgs =
        BackendServiceCdnPolicyCacheKeyPolicyArgs(
            includeHost = includeHost,
            includeHttpHeaders = includeHttpHeaders,
            includeNamedCookies = includeNamedCookies,
            includeProtocol = includeProtocol,
            includeQueryString = includeQueryString,
            queryStringBlacklists = queryStringBlacklists,
            queryStringWhitelists = queryStringWhitelists,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy