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

com.pulumi.azure.cdn.kotlin.inputs.EndpointDeliveryRuleUrlPathConditionArgs.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.EndpointDeliveryRuleUrlPathConditionArgs.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`, `LessThanOrEqual`, `RegEx` and `Wildcard`.
 * @property transforms A list of transforms. Valid values are `Lowercase` and `Uppercase`.
 */
public data class EndpointDeliveryRuleUrlPathConditionArgs(
    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.EndpointDeliveryRuleUrlPathConditionArgs =
        com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleUrlPathConditionArgs.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 [EndpointDeliveryRuleUrlPathConditionArgs].
 */
@PulumiTagMarker
public class EndpointDeliveryRuleUrlPathConditionArgsBuilder 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("ajssadbaeultjpfv")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

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

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

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

    @JvmName("sacmtjnmxcdymdjs")
    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("ryojjuqgfkuiahtg")
    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("mabseqwtbqmejlki")
    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("gwevvqbqooevsdfy")
    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("qxulufyoodgqgybo")
    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`, `LessThanOrEqual`, `RegEx` and `Wildcard`.
     */
    @JvmName("rilykhkqvbobjlcj")
    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("vguaxbxubnwqnrge")
    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("dbwjtexxpabvnnqq")
    public suspend fun transforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy