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

com.pulumi.azurenative.app.kotlin.inputs.HeaderMatchArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.HeaderMatchArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Conditions required to match a header
 * @property exactMatch Exact value of the header
 * @property header Name of the header
 * @property prefixMatch Prefix value of the header
 * @property regexMatch Regex value of the header
 * @property suffixMatch Suffix value of the header
 */
public data class HeaderMatchArgs(
    public val exactMatch: Output? = null,
    public val `header`: Output? = null,
    public val prefixMatch: Output? = null,
    public val regexMatch: Output? = null,
    public val suffixMatch: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.HeaderMatchArgs =
        com.pulumi.azurenative.app.inputs.HeaderMatchArgs.builder()
            .exactMatch(exactMatch?.applyValue({ args0 -> args0 }))
            .`header`(`header`?.applyValue({ args0 -> args0 }))
            .prefixMatch(prefixMatch?.applyValue({ args0 -> args0 }))
            .regexMatch(regexMatch?.applyValue({ args0 -> args0 }))
            .suffixMatch(suffixMatch?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HeaderMatchArgs].
 */
@PulumiTagMarker
public class HeaderMatchArgsBuilder internal constructor() {
    private var exactMatch: Output? = null

    private var `header`: Output? = null

    private var prefixMatch: Output? = null

    private var regexMatch: Output? = null

    private var suffixMatch: Output? = null

    /**
     * @param value Exact value of the header
     */
    @JvmName("taulmuyheojxpbxd")
    public suspend fun exactMatch(`value`: Output) {
        this.exactMatch = value
    }

    /**
     * @param value Name of the header
     */
    @JvmName("lffktoknccvluwge")
    public suspend fun `header`(`value`: Output) {
        this.`header` = value
    }

    /**
     * @param value Prefix value of the header
     */
    @JvmName("vpaahdfjqbecjoxo")
    public suspend fun prefixMatch(`value`: Output) {
        this.prefixMatch = value
    }

    /**
     * @param value Regex value of the header
     */
    @JvmName("uegcgehemncoyony")
    public suspend fun regexMatch(`value`: Output) {
        this.regexMatch = value
    }

    /**
     * @param value Suffix value of the header
     */
    @JvmName("oxykovsfqaghkxoy")
    public suspend fun suffixMatch(`value`: Output) {
        this.suffixMatch = value
    }

    /**
     * @param value Exact value of the header
     */
    @JvmName("iomjjhgcrgsyyvtt")
    public suspend fun exactMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exactMatch = mapped
    }

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

    /**
     * @param value Prefix value of the header
     */
    @JvmName("mtumtctbfogjcpoj")
    public suspend fun prefixMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefixMatch = mapped
    }

    /**
     * @param value Regex value of the header
     */
    @JvmName("acwogpgoyqqiidrr")
    public suspend fun regexMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regexMatch = mapped
    }

    /**
     * @param value Suffix value of the header
     */
    @JvmName("wyiprolvbqxeuvtc")
    public suspend fun suffixMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.suffixMatch = mapped
    }

    internal fun build(): HeaderMatchArgs = HeaderMatchArgs(
        exactMatch = exactMatch,
        `header` = `header`,
        prefixMatch = prefixMatch,
        regexMatch = regexMatch,
        suffixMatch = suffixMatch,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy