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

com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.HttpRouteMatchHeaderArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs

import com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchHeaderArgs.builder
import com.pulumi.azurenative.servicefabricmesh.kotlin.enums.HeaderMatchType
import com.pulumi.core.Either
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

/**
 * Describes header information for http route matching.
 * @property name Name of header to match in request.
 * @property type how to match header value
 * @property value Value of header to match in request.
 */
public data class HttpRouteMatchHeaderArgs(
    public val name: Output,
    public val type: Output>? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchHeaderArgs =
        com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchHeaderArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output>? = null

    private var `value`: Output? = null

    /**
     * @param value Name of header to match in request.
     */
    @JvmName("nrnaufbsrmpgncmn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value how to match header value
     */
    @JvmName("dfbhnxthounleast")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Value of header to match in request.
     */
    @JvmName("qobtxoixxqplkqom")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

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

    /**
     * @param value how to match header value
     */
    @JvmName("ofkpogwrvkqwtiom")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value how to match header value
     */
    @JvmName("lbabcukehemkrclm")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value how to match header value
     */
    @JvmName("uphfnwyrbjafbcfb")
    public fun type(`value`: HeaderMatchType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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

    internal fun build(): HttpRouteMatchHeaderArgs = HttpRouteMatchHeaderArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        type = type,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy