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

com.pulumi.azurenative.insights.kotlin.inputs.HeaderFieldArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.HeaderFieldArgs.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

/**
 * A header to add to the WebTest.
 * @property headerFieldName The name of the header.
 * @property headerFieldValue The value of the header.
 */
public data class HeaderFieldArgs(
    public val headerFieldName: Output? = null,
    public val headerFieldValue: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.HeaderFieldArgs =
        com.pulumi.azurenative.insights.inputs.HeaderFieldArgs.builder()
            .headerFieldName(headerFieldName?.applyValue({ args0 -> args0 }))
            .headerFieldValue(headerFieldValue?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HeaderFieldArgs].
 */
@PulumiTagMarker
public class HeaderFieldArgsBuilder internal constructor() {
    private var headerFieldName: Output? = null

    private var headerFieldValue: Output? = null

    /**
     * @param value The name of the header.
     */
    @JvmName("hniwlxetwybtmlkw")
    public suspend fun headerFieldName(`value`: Output) {
        this.headerFieldName = value
    }

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

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

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

    internal fun build(): HeaderFieldArgs = HeaderFieldArgs(
        headerFieldName = headerFieldName,
        headerFieldValue = headerFieldValue,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy