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

com.pulumi.gcp.compute.kotlin.outputs.URLMapHeaderAction.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 URLMapHeaderAction(
    public val requestHeadersToAdds: List? = null,
    public val requestHeadersToRemoves: List? = null,
    public val responseHeadersToAdds: List? = null,
    public val responseHeadersToRemoves: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.URLMapHeaderAction): URLMapHeaderAction = URLMapHeaderAction(
            requestHeadersToAdds = javaType.requestHeadersToAdds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.URLMapHeaderActionRequestHeadersToAdd.Companion.toKotlin(args0)
                })
            }),
            requestHeadersToRemoves = javaType.requestHeadersToRemoves().map({ args0 -> args0 }),
            responseHeadersToAdds = javaType.responseHeadersToAdds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.URLMapHeaderActionResponseHeadersToAdd.Companion.toKotlin(args0)
                })
            }),
            responseHeadersToRemoves = javaType.responseHeadersToRemoves().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy