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

com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs.builder
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

/**
 *
 * @property action Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
 * @property name The header name.
 * @property value The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
 */
public data class EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs(
    public val action: Output,
    public val name: Output,
    public val `value`: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs =
        com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs].
 */
@PulumiTagMarker
public class EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder internal constructor() {
    private var action: Output? = null

    private var name: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
     */
    @JvmName("itruecnhsvnfxkhl")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

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

    /**
     * @param value The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
     */
    @JvmName("tgiotptlkiowakor")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Action to be executed on a header value. Valid values are `Append`, `Delete` and `Overwrite`.
     */
    @JvmName("vronflegwsttnsvj")
    public suspend fun action(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

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

    /**
     * @param value The value of the header. Only needed when `action` is set to `Append` or `overwrite`.
     */
    @JvmName("huibyosameyqfkfi")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy