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

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

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

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

import com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestHeaderConditionArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property matchValues List of header values. This is required if `operator` is not `Any`.
 * @property negateCondition Defaults to `false`.
 * @property operator Valid values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan` and `LessThanOrEqual`.
 * @property selector Header name.
 * @property transforms A list of transforms. Valid values are `Lowercase` and `Uppercase`.
 */
public data class EndpointDeliveryRuleRequestHeaderConditionArgs(
    public val matchValues: Output>? = null,
    public val negateCondition: Output? = null,
    public val `operator`: Output,
    public val selector: Output,
    public val transforms: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestHeaderConditionArgs = com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestHeaderConditionArgs.builder()
        .matchValues(matchValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
        .`operator`(`operator`.applyValue({ args0 -> args0 }))
        .selector(selector.applyValue({ args0 -> args0 }))
        .transforms(transforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    private var selector: Output? = null

    private var transforms: Output>? = null

    /**
     * @param value List of header values. This is required if `operator` is not `Any`.
     */
    @JvmName("wekolskwymklwtyw")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

    @JvmName("tyvltpxgcrofbdxb")
    public suspend fun matchValues(vararg values: Output) {
        this.matchValues = Output.all(values.asList())
    }

    /**
     * @param values List of header values. This is required if `operator` is not `Any`.
     */
    @JvmName("auefegtesogybtig")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

    /**
     * @param value Defaults to `false`.
     */
    @JvmName("lwaodifyxklqmgvr")
    public suspend fun negateCondition(`value`: Output) {
        this.negateCondition = value
    }

    /**
     * @param value Valid values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan` and `LessThanOrEqual`.
     */
    @JvmName("tjrsrfbxudoyxoda")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value Header name.
     */
    @JvmName("axhshqbdccyjwxoj")
    public suspend fun selector(`value`: Output) {
        this.selector = value
    }

    /**
     * @param value A list of transforms. Valid values are `Lowercase` and `Uppercase`.
     */
    @JvmName("ugtquwubmrbjdeyg")
    public suspend fun transforms(`value`: Output>) {
        this.transforms = value
    }

    @JvmName("oetnxldgcbmehefs")
    public suspend fun transforms(vararg values: Output) {
        this.transforms = Output.all(values.asList())
    }

    /**
     * @param values A list of transforms. Valid values are `Lowercase` and `Uppercase`.
     */
    @JvmName("vqahamdkstuyrvtj")
    public suspend fun transforms(values: List>) {
        this.transforms = Output.all(values)
    }

    /**
     * @param value List of header values. This is required if `operator` is not `Any`.
     */
    @JvmName("wewunsrtwlmxswxc")
    public suspend fun matchValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values List of header values. This is required if `operator` is not `Any`.
     */
    @JvmName("nojrklnyoevgngiy")
    public suspend fun matchValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param value Defaults to `false`.
     */
    @JvmName("yssnkyvaolftdujm")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

    /**
     * @param value Valid values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan` and `LessThanOrEqual`.
     */
    @JvmName("vushcrawlpnaoyjn")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

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

    /**
     * @param value A list of transforms. Valid values are `Lowercase` and `Uppercase`.
     */
    @JvmName("ctofelhrqhfnhfkw")
    public suspend fun transforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param values A list of transforms. Valid values are `Lowercase` and `Uppercase`.
     */
    @JvmName("vjukoaoerapvhdyb")
    public suspend fun transforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    internal fun build(): EndpointDeliveryRuleRequestHeaderConditionArgs =
        EndpointDeliveryRuleRequestHeaderConditionArgs(
            matchValues = matchValues,
            negateCondition = negateCondition,
            `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
            selector = selector ?: throw PulumiNullFieldException("selector"),
            transforms = transforms,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy