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

com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleActionResponseHeaderModifier.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.12.0.0
Show newest version
@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