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

com.pulumi.gcp.networksecurity.kotlin.inputs.AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs.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.jvm.JvmName

/**
 *
 * @property name Specifies the name of the header in the request.
 * @property value Specifies how the header match will be performed.
 * Structure is documented below.
 */
public data class AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs(
    public val name: Output? = null,
    public val `value`: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs].
 */
@PulumiTagMarker
public class AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgsBuilder internal constructor() {
    private var name: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Specifies the name of the header in the request.
     */
    @JvmName("dplwkrxasgekxubn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies how the header match will be performed.
     * Structure is documented below.
     */
    @JvmName("ibhtvmrqcpxndnqy")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Specifies the name of the header in the request.
     */
    @JvmName("ituyuqeypubaldcw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies how the header match will be performed.
     * Structure is documented below.
     */
    @JvmName("hutiucwxiicxunhs")
    public suspend fun `value`(`value`: AuthzPolicyHttpRuleToOperationHeaderSetHeaderValueArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param argument Specifies how the header match will be performed.
     * Structure is documented below.
     */
    @JvmName("uqaymnompphqkjbs")
    public suspend fun `value`(argument: suspend AuthzPolicyHttpRuleToOperationHeaderSetHeaderValueArgsBuilder.() -> Unit) {
        val toBeMapped = AuthzPolicyHttpRuleToOperationHeaderSetHeaderValueArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    internal fun build(): AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs =
        AuthzPolicyHttpRuleToOperationHeaderSetHeaderArgs(
            name = name,
            `value` = `value`,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy