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

com.pulumi.gcp.compute.kotlin.inputs.BackendBucketCdnPolicyCacheKeyPolicyArgs.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.BackendBucketCdnPolicyCacheKeyPolicyArgs.builder
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 includeHttpHeaders Allows HTTP request headers (by name) to be used in the
 * cache key.
 * @property queryStringWhitelists Names of query string parameters to include in cache keys.
 * Default parameters are always included. '&' and '=' will
 * be percent encoded and not treated as delimiters.
 */
public data class BackendBucketCdnPolicyCacheKeyPolicyArgs(
    public val includeHttpHeaders: Output>? = null,
    public val queryStringWhitelists: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendBucketCdnPolicyCacheKeyPolicyArgs =
        com.pulumi.gcp.compute.inputs.BackendBucketCdnPolicyCacheKeyPolicyArgs.builder()
            .includeHttpHeaders(includeHttpHeaders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .queryStringWhitelists(
                queryStringWhitelists?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var queryStringWhitelists: Output>? = null

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

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

    /**
     * @param value Names of query string parameters to include in cache keys.
     * Default parameters are always included. '&' and '=' will
     * be percent encoded and not treated as delimiters.
     */
    @JvmName("nggkkyfiqxscsglk")
    public suspend fun queryStringWhitelists(`value`: Output>) {
        this.queryStringWhitelists = value
    }

    @JvmName("fwrsprdmteyylyqw")
    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.
     * Default parameters are always included. '&' and '=' will
     * be percent encoded and not treated as delimiters.
     */
    @JvmName("csdbnnqqwgjhlvqb")
    public suspend fun queryStringWhitelists(values: List>) {
        this.queryStringWhitelists = Output.all(values)
    }

    /**
     * @param value Allows HTTP request headers (by name) to be used in the
     * cache key.
     */
    @JvmName("crgllmsbjlrjkeeg")
    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("ekdicwvawwcuuknu")
    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 query string parameters to include in cache keys.
     * Default parameters are always included. '&' and '=' will
     * be percent encoded and not treated as delimiters.
     */
    @JvmName("pffdbnbcfucsxvrx")
    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.
     * Default parameters are always included. '&' and '=' will
     * be percent encoded and not treated as delimiters.
     */
    @JvmName("pjinddhgdwjabkmp")
    public suspend fun queryStringWhitelists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringWhitelists = mapped
    }

    internal fun build(): BackendBucketCdnPolicyCacheKeyPolicyArgs =
        BackendBucketCdnPolicyCacheKeyPolicyArgs(
            includeHttpHeaders = includeHttpHeaders,
            queryStringWhitelists = queryStringWhitelists,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy