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

com.pulumi.gcp.cloudtasks.kotlin.inputs.QueueHttpTargetHeaderOverrideArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudtasks.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetHeaderOverrideArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property header Header embodying a key and a value.
 * Structure is documented below.
 */
public data class QueueHttpTargetHeaderOverrideArgs(
    public val `header`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetHeaderOverrideArgs =
        com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetHeaderOverrideArgs.builder()
            .`header`(`header`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [QueueHttpTargetHeaderOverrideArgs].
 */
@PulumiTagMarker
public class QueueHttpTargetHeaderOverrideArgsBuilder internal constructor() {
    private var `header`: Output? = null

    /**
     * @param value Header embodying a key and a value.
     * Structure is documented below.
     */
    @JvmName("odiktyhfltekaaes")
    public suspend fun `header`(`value`: Output) {
        this.`header` = value
    }

    /**
     * @param value Header embodying a key and a value.
     * Structure is documented below.
     */
    @JvmName("gogfbpehmblpnawg")
    public suspend fun `header`(`value`: QueueHttpTargetHeaderOverrideHeaderArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param argument Header embodying a key and a value.
     * Structure is documented below.
     */
    @JvmName("oewgucveuyjacwok")
    public suspend fun `header`(argument: suspend QueueHttpTargetHeaderOverrideHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = QueueHttpTargetHeaderOverrideHeaderArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.`header` = mapped
    }

    internal fun build(): QueueHttpTargetHeaderOverrideArgs = QueueHttpTargetHeaderOverrideArgs(
        `header` = `header` ?: throw PulumiNullFieldException("header"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy