com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleActionResponseHeaderModifier.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.networkservices.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property add Add the headers with given map where key is the name of the header, value is the value of the header.
* @property removes Remove headers (matching by header names) specified in the list.
* @property set Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
*/
public data class HttpRouteRuleActionResponseHeaderModifier(
public val add: Map? = null,
public val removes: List? = null,
public val `set`: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.HttpRouteRuleActionResponseHeaderModifier): HttpRouteRuleActionResponseHeaderModifier = HttpRouteRuleActionResponseHeaderModifier(
add = javaType.add().map({ args0 -> args0.key.to(args0.value) }).toMap(),
removes = javaType.removes().map({ args0 -> args0 }),
`set` = javaType.`set`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy