com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy