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

com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.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: 8.10.0.0
Show newest version
@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.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.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 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 RegionBackendServiceCdnPolicyCacheKeyPolicyArgs(
    public val includeHost: 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.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs =
        com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.builder()
            .includeHost(includeHost?.applyValue({ 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 [RegionBackendServiceCdnPolicyCacheKeyPolicyArgs].
 */
@PulumiTagMarker
public class RegionBackendServiceCdnPolicyCacheKeyPolicyArgsBuilder internal constructor() {
    private var includeHost: 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("khlldnuvxnpixjbc")
    public suspend fun includeHost(`value`: Output) {
        this.includeHost = value
    }

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

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

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

    /**
     * @param value If true, http and https requests will be cached separately.
     */
    @JvmName("msoeonkfahbduxqh")
    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("nebcfjwwkrugyjnp")
    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("lexnoijsdpvktyrs")
    public suspend fun queryStringBlacklists(`value`: Output>) {
        this.queryStringBlacklists = value
    }

    @JvmName("wamoevnlgwjnnwwq")
    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("sdacyywpdfqygjpv")
    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("ammkaerumlqwcmgu")
    public suspend fun queryStringWhitelists(`value`: Output>) {
        this.queryStringWhitelists = value
    }

    @JvmName("tmdeuuqvppgayrhh")
    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("uwoeutcfamabkxja")
    public suspend fun queryStringWhitelists(values: List>) {
        this.queryStringWhitelists = Output.all(values)
    }

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

    /**
     * @param value Names of cookies to include in cache keys.
     */
    @JvmName("mopeqbwlitgffcco")
    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("naeywbguovjketff")
    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("fdjgkjubbisiuasm")
    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("srtlkfepwjsomers")
    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("xbkmpcrlsmyhbfkt")
    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("nrromphsubsfpyxm")
    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("lepqgvorpsqhdrri")
    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("emhkuwipuvqpjmex")
    public suspend fun queryStringWhitelists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringWhitelists = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy