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

com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs.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.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property requestHeadersToAdds Headers to add to a matching request before forwarding the request to the backendService.
 * Structure is documented below.
 * @property requestHeadersToRemoves A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
 * @property responseHeadersToAdds Headers to add the response before sending the response back to the client.
 * Structure is documented below.
 * @property responseHeadersToRemoves A list of header names for headers that need to be removed from the response before sending the response back to the client.
 */
public data class RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs(
    public val requestHeadersToAdds: Output>? =
        null,
    public val requestHeadersToRemoves: Output>? = null,
    public val responseHeadersToAdds: Output>? =
        null,
    public val responseHeadersToRemoves: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs =
        com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs.builder()
            .requestHeadersToAdds(
                requestHeadersToAdds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .requestHeadersToRemoves(
                requestHeadersToRemoves?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .responseHeadersToAdds(
                responseHeadersToAdds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .responseHeadersToRemoves(
                responseHeadersToRemoves?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var requestHeadersToRemoves: Output>? = null

    private var responseHeadersToAdds:
        Output>? =
        null

    private var responseHeadersToRemoves: Output>? = null

    /**
     * @param value Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("yrlqtdapyvwulwpn")
    public suspend fun requestHeadersToAdds(`value`: Output>) {
        this.requestHeadersToAdds = value
    }

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

    /**
     * @param values Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("jkrlmlieoiosjibs")
    public suspend fun requestHeadersToAdds(values: List>) {
        this.requestHeadersToAdds = Output.all(values)
    }

    /**
     * @param value A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
     */
    @JvmName("opqpcahecjidcoxo")
    public suspend fun requestHeadersToRemoves(`value`: Output>) {
        this.requestHeadersToRemoves = value
    }

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

    /**
     * @param values A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
     */
    @JvmName("xxgbfvamamgtcvcu")
    public suspend fun requestHeadersToRemoves(values: List>) {
        this.requestHeadersToRemoves = Output.all(values)
    }

    /**
     * @param value Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("yijseqcfbufmqopq")
    public suspend fun responseHeadersToAdds(`value`: Output>) {
        this.responseHeadersToAdds = value
    }

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

    /**
     * @param values Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("jocaehrrwcxgpoxm")
    public suspend fun responseHeadersToAdds(values: List>) {
        this.responseHeadersToAdds = Output.all(values)
    }

    /**
     * @param value A list of header names for headers that need to be removed from the response before sending the response back to the client.
     */
    @JvmName("ewiwwcxjjphxdkjv")
    public suspend fun responseHeadersToRemoves(`value`: Output>) {
        this.responseHeadersToRemoves = value
    }

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

    /**
     * @param values A list of header names for headers that need to be removed from the response before sending the response back to the client.
     */
    @JvmName("krhpbqgjiankamfq")
    public suspend fun responseHeadersToRemoves(values: List>) {
        this.responseHeadersToRemoves = Output.all(values)
    }

    /**
     * @param value Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("jfrsxgcmgjxoxcwf")
    public suspend fun requestHeadersToAdds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("ffbmfyhtfvvkxikk")
    public suspend fun requestHeadersToAdds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.requestHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("fmywbgxqegvpbbgk")
    public suspend fun requestHeadersToAdds(vararg argument: suspend RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.requestHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("owddcwkhxvuxtntg")
    public suspend fun requestHeadersToAdds(argument: suspend RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.requestHeadersToAdds = mapped
    }

    /**
     * @param values Headers to add to a matching request before forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("dxivydnvapqyigvv")
    public suspend fun requestHeadersToAdds(vararg values: RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requestHeadersToAdds = mapped
    }

    /**
     * @param value A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
     */
    @JvmName("klmrqjarchoddhuv")
    public suspend fun requestHeadersToRemoves(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestHeadersToRemoves = mapped
    }

    /**
     * @param values A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
     */
    @JvmName("bsrvvourxccjykfb")
    public suspend fun requestHeadersToRemoves(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requestHeadersToRemoves = mapped
    }

    /**
     * @param value Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("rnulmjmtjfbunwqi")
    public suspend fun responseHeadersToAdds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.responseHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("ghsfykjepqjerays")
    public suspend fun responseHeadersToAdds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.responseHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("wvcabcplixsbbcix")
    public suspend fun responseHeadersToAdds(vararg argument: suspend RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.responseHeadersToAdds = mapped
    }

    /**
     * @param argument Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("bldivybsqahocnch")
    public suspend fun responseHeadersToAdds(argument: suspend RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.responseHeadersToAdds = mapped
    }

    /**
     * @param values Headers to add the response before sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("dhkbmimhjkvysnmw")
    public suspend fun responseHeadersToAdds(vararg values: RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.responseHeadersToAdds = mapped
    }

    /**
     * @param value A list of header names for headers that need to be removed from the response before sending the response back to the client.
     */
    @JvmName("runeytwwbovmflvk")
    public suspend fun responseHeadersToRemoves(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.responseHeadersToRemoves = mapped
    }

    /**
     * @param values A list of header names for headers that need to be removed from the response before sending the response back to the client.
     */
    @JvmName("udysmxkhfkexcwew")
    public suspend fun responseHeadersToRemoves(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.responseHeadersToRemoves = mapped
    }

    internal fun build(): RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs =
        RegionUrlMapDefaultRouteActionWeightedBackendServiceHeaderActionArgs(
            requestHeadersToAdds = requestHeadersToAdds,
            requestHeadersToRemoves = requestHeadersToRemoves,
            responseHeadersToAdds = responseHeadersToAdds,
            responseHeadersToRemoves = responseHeadersToRemoves,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy