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

com.pulumi.azure.cdn.kotlin.inputs.EndpointDeliveryRuleRequestUriConditionArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestUriConditionArgs.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 string 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 transforms A list of transforms. Valid values are `Lowercase` and `Uppercase`.
 */
public data class EndpointDeliveryRuleRequestUriConditionArgs(
    public val matchValues: Output>? = null,
    public val negateCondition: Output? = null,
    public val `operator`: Output,
    public val transforms: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestUriConditionArgs =
        com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestUriConditionArgs.builder()
            .matchValues(matchValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .transforms(transforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    private var transforms: Output>? = null

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

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

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

    /**
     * @param value Defaults to `false`.
     */
    @JvmName("cpmhixiyljfatmhr")
    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("shkbgrsywxkhftxm")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

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

    @JvmName("cqkdjwtsxkrjlthq")
    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("yugkchnlnawdpqlt")
    public suspend fun transforms(values: List>) {
        this.transforms = Output.all(values)
    }

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

    /**
     * @param values List of string values. This is required if `operator` is not `Any`.
     */
    @JvmName("youbeufidrjvleha")
    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("qhxgjfqxufdgruyi")
    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("dvddwywmymyymikg")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value A list of transforms. Valid values are `Lowercase` and `Uppercase`.
     */
    @JvmName("hwdvxsvqdpksfwho")
    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("qsjoscepmqbqwofx")
    public suspend fun transforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy