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

com.pulumi.azurenative.cdn.kotlin.inputs.HeaderActionParametersArgs.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.cdn.kotlin.inputs

import com.pulumi.azurenative.cdn.inputs.HeaderActionParametersArgs.builder
import com.pulumi.azurenative.cdn.kotlin.enums.HeaderAction
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

/**
 * Defines the parameters for the request header action.
 * @property headerAction Action to perform
 * @property headerName Name of the header to modify
 * @property typeName
 * @property value Value for the specified action
 */
public data class HeaderActionParametersArgs(
    public val headerAction: Output>,
    public val headerName: Output,
    public val typeName: Output,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cdn.inputs.HeaderActionParametersArgs =
        com.pulumi.azurenative.cdn.inputs.HeaderActionParametersArgs.builder()
            .headerAction(
                headerAction.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .headerName(headerName.applyValue({ args0 -> args0 }))
            .typeName(typeName.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HeaderActionParametersArgs].
 */
@PulumiTagMarker
public class HeaderActionParametersArgsBuilder internal constructor() {
    private var headerAction: Output>? = null

    private var headerName: Output? = null

    private var typeName: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Action to perform
     */
    @JvmName("jwwqnabdxftdypdn")
    public suspend fun headerAction(`value`: Output>) {
        this.headerAction = value
    }

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

    /**
     * @param value
     */
    @JvmName("bjtiddiluiosknuv")
    public suspend fun typeName(`value`: Output) {
        this.typeName = value
    }

    /**
     * @param value Value for the specified action
     */
    @JvmName("omgcbaneoivdmxhw")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Action to perform
     */
    @JvmName("fragpwrjumxbxbqq")
    public suspend fun headerAction(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerAction = mapped
    }

    /**
     * @param value Action to perform
     */
    @JvmName("bdsttcxfbpptaama")
    public fun headerAction(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerAction = mapped
    }

    /**
     * @param value Action to perform
     */
    @JvmName("ayokuvrdgjfwapxu")
    public fun headerAction(`value`: HeaderAction) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerAction = mapped
    }

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

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

    /**
     * @param value Value for the specified action
     */
    @JvmName("bkjnigaiqmcvdpxl")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): HeaderActionParametersArgs = HeaderActionParametersArgs(
        headerAction = headerAction ?: throw PulumiNullFieldException("headerAction"),
        headerName = headerName ?: throw PulumiNullFieldException("headerName"),
        typeName = typeName ?: throw PulumiNullFieldException("typeName"),
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy