com.pulumi.azure.cdn.kotlin.inputs.EndpointDeliveryRuleModifyResponseHeaderActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleModifyResponseHeaderActionArgs.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 EndpointDeliveryRuleModifyResponseHeaderActionArgs(
public val action: Output,
public val name: Output,
public val `value`: Output? = null,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleModifyResponseHeaderActionArgs =
com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleModifyResponseHeaderActionArgs.builder()
.action(action.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointDeliveryRuleModifyResponseHeaderActionArgs].
*/
@PulumiTagMarker
public class EndpointDeliveryRuleModifyResponseHeaderActionArgsBuilder 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("nwhagvdordqwdjvs")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The header name.
*/
@JvmName("vwesasvahxgsqufy")
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("kcynvqxdxrpherfv")
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("oardhbhpvwoexveq")
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("wsqgmqqnkiosqtkc")
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("egbyncxntsqspobf")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): EndpointDeliveryRuleModifyResponseHeaderActionArgs =
EndpointDeliveryRuleModifyResponseHeaderActionArgs(
action = action ?: throw PulumiNullFieldException("action"),
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value`,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy