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

com.pulumi.azurenative.cdn.kotlin.inputs.DeliveryRuleResponseHeaderActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.cdn.kotlin.inputs

import com.pulumi.azurenative.cdn.inputs.DeliveryRuleResponseHeaderActionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Defines the response header action for the delivery rule.
 * @property name The name of the action for the delivery rule.
 * Expected value is 'ModifyResponseHeader'.
 * @property parameters Defines the parameters for the action.
 */
public data class DeliveryRuleResponseHeaderActionArgs(
    public val name: Output,
    public val parameters: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cdn.inputs.DeliveryRuleResponseHeaderActionArgs =
        com.pulumi.azurenative.cdn.inputs.DeliveryRuleResponseHeaderActionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .parameters(parameters.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var parameters: Output? = null

    /**
     * @param value The name of the action for the delivery rule.
     * Expected value is 'ModifyResponseHeader'.
     */
    @JvmName("yivqsyryhhqaslff")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Defines the parameters for the action.
     */
    @JvmName("ejjcycycpfemxpqd")
    public suspend fun parameters(`value`: Output) {
        this.parameters = value
    }

    /**
     * @param value The name of the action for the delivery rule.
     * Expected value is 'ModifyResponseHeader'.
     */
    @JvmName("ycdjkklhydkhqhfp")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Defines the parameters for the action.
     */
    @JvmName("bbeqpibnqxqynmdo")
    public suspend fun parameters(`value`: HeaderActionParametersArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Defines the parameters for the action.
     */
    @JvmName("hepemlvolowhribx")
    public suspend fun parameters(argument: suspend HeaderActionParametersArgsBuilder.() -> Unit) {
        val toBeMapped = HeaderActionParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    internal fun build(): DeliveryRuleResponseHeaderActionArgs = DeliveryRuleResponseHeaderActionArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        parameters = parameters ?: throw PulumiNullFieldException("parameters"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy