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

@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("tvbmoukgkbghntlb")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

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

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

    @JvmName("kueajlasleynkacq")
    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("mhxkrdptxalpfylk")
    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("bypwvyrwhhbhvihu")
    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("fnmdarrwnpxnsoqv")
    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("iyresungcawsbmgg")
    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("wofomlanooegnvqx")
    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("fchhjrdyyaesrywu")
    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("uhmrvxghfjnqqaxt")
    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 - 2024 Weber Informatics LLC | Privacy Policy