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

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property headerName Header name of the header configuration.
 * @property headerValue Header value of the header configuration. To delete a request header set this property to an empty string.
 */
public data class ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs(
    public val headerName: Output,
    public val headerValue: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs.builder()
            .headerName(headerName.applyValue({ args0 -> args0 }))
            .headerValue(headerValue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgsBuilder
internal constructor() {
    private var headerName: Output? = null

    private var headerValue: Output? = null

    /**
     * @param value Header name of the header configuration.
     */
    @JvmName("xwnbmcbjxcpaxfhx")
    public suspend fun headerName(`value`: Output) {
        this.headerName = value
    }

    /**
     * @param value Header value of the header configuration. To delete a request header set this property to an empty string.
     */
    @JvmName("csbwdieyrtbilkkv")
    public suspend fun headerValue(`value`: Output) {
        this.headerValue = value
    }

    /**
     * @param value Header name of the header configuration.
     */
    @JvmName("ityeoerioywjhyto")
    public suspend fun headerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerName = mapped
    }

    /**
     * @param value Header value of the header configuration. To delete a request header set this property to an empty string.
     */
    @JvmName("mjymlxvrcuujweim")
    public suspend fun headerValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerValue = mapped
    }

    internal fun build(): ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs =
        ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs(
            headerName = headerName ?: throw PulumiNullFieldException("headerName"),
            headerValue = headerValue ?: throw PulumiNullFieldException("headerValue"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy