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

com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs.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.URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs.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 prior to 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 prior to
 * forwarding the request to the backendService.
 * @property responseHeadersToAdds Headers to add the response prior to 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 prior to sending the
 * response back to the client.
 */
public data class URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs(
    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.URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs =
        com.pulumi.gcp.compute.inputs.URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs.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 [URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs].
 */
@PulumiTagMarker
public class URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgsBuilder
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 prior to forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("swkaxswtjipyrbym")
    public suspend fun requestHeadersToAdds(`value`: Output>) {
        this.requestHeadersToAdds = value
    }

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

    /**
     * @param values Headers to add to a matching request prior to forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("jvqlibwhicusbkkf")
    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 prior to
     * forwarding the request to the backendService.
     */
    @JvmName("qxsfblplxohkhbxu")
    public suspend fun requestHeadersToRemoves(`value`: Output>) {
        this.requestHeadersToRemoves = value
    }

    @JvmName("qktsuyyxmkviotop")
    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 prior to
     * forwarding the request to the backendService.
     */
    @JvmName("qmcjtnhceyftbtid")
    public suspend fun requestHeadersToRemoves(values: List>) {
        this.requestHeadersToRemoves = Output.all(values)
    }

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

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

    /**
     * @param values Headers to add the response prior to sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("vbdnhoksmnbnaxyq")
    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 prior to sending the
     * response back to the client.
     */
    @JvmName("uakkiakmrfplasnj")
    public suspend fun responseHeadersToRemoves(`value`: Output>) {
        this.responseHeadersToRemoves = value
    }

    @JvmName("mdpwranfdqujgrty")
    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 prior to sending the
     * response back to the client.
     */
    @JvmName("ffaxuubitnvxuvqk")
    public suspend fun responseHeadersToRemoves(values: List>) {
        this.responseHeadersToRemoves = Output.all(values)
    }

    /**
     * @param value Headers to add to a matching request prior to forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("gnmcvqcldnywpovr")
    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 prior to forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("ejqebqumaaivwnwc")
    public suspend fun requestHeadersToAdds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.requestHeadersToAdds = mapped
    }

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

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

    /**
     * @param values Headers to add to a matching request prior to forwarding the request to the backendService.
     * Structure is documented below.
     */
    @JvmName("qmofjefhuqmlpuek")
    public suspend fun requestHeadersToAdds(vararg values: URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs) {
        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 prior to
     * forwarding the request to the backendService.
     */
    @JvmName("rfaagdqnuacqwuns")
    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 prior to
     * forwarding the request to the backendService.
     */
    @JvmName("iwrsrfsjagbhrgmh")
    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 prior to sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("bhlalxjchqwfxmte")
    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 prior to sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("fmifymgfnikyysoo")
    public suspend fun responseHeadersToAdds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.responseHeadersToAdds = mapped
    }

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

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

    /**
     * @param values Headers to add the response prior to sending the response back to the client.
     * Structure is documented below.
     */
    @JvmName("hvullwokbsbfwqas")
    public suspend fun responseHeadersToAdds(vararg values: URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs) {
        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 prior to sending the
     * response back to the client.
     */
    @JvmName("wsblujvhlaqoxhsa")
    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 prior to sending the
     * response back to the client.
     */
    @JvmName("xjuuoocijkshyuyy")
    public suspend fun responseHeadersToRemoves(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.responseHeadersToRemoves = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy