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

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

package com.pulumi.azurenative.cdn.kotlin.inputs

import com.pulumi.azurenative.cdn.inputs.PostArgsMatchConditionParametersArgs.builder
import com.pulumi.azurenative.cdn.kotlin.enums.PostArgsOperator
import com.pulumi.azurenative.cdn.kotlin.enums.Transform
import com.pulumi.core.Either
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

/**
 * Defines the parameters for PostArgs match conditions
 * @property matchValues The match value for the condition of the delivery rule
 * @property negateCondition Describes if this is negate condition or not
 * @property operator Describes operator to be matched
 * @property selector Name of PostArg to be matched
 * @property transforms List of transforms
 * @property typeName
 */
public data class PostArgsMatchConditionParametersArgs(
    public val matchValues: Output>? = null,
    public val negateCondition: Output? = null,
    public val `operator`: Output>,
    public val selector: Output? = null,
    public val transforms: Output>>? = null,
    public val typeName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cdn.inputs.PostArgsMatchConditionParametersArgs =
        com.pulumi.azurenative.cdn.inputs.PostArgsMatchConditionParametersArgs.builder()
            .matchValues(matchValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(
                `operator`.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .selector(selector?.applyValue({ args0 -> args0 }))
            .transforms(
                transforms?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform(
                            { args0 -> args0 },
                            { args0 -> args0.let({ args0 -> args0.toJava() }) },
                        )
                    })
                }),
            )
            .typeName(typeName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PostArgsMatchConditionParametersArgs].
 */
@PulumiTagMarker
public class PostArgsMatchConditionParametersArgsBuilder 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

    private var typeName: Output? = null

    /**
     * @param value The match value for the condition of the delivery rule
     */
    @JvmName("sshofbixoiddwfgi")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

    /**
     * @param values The match value for the condition of the delivery rule
     */
    @JvmName("bgmbtvdyjsfmcsde")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

    /**
     * @param value Describes if this is negate condition or not
     */
    @JvmName("snujovrfesqcxspe")
    public suspend fun negateCondition(`value`: Output) {
        this.negateCondition = value
    }

    /**
     * @param value Describes operator to be matched
     */
    @JvmName("sanxoqtliqenyfyc")
    public suspend fun `operator`(`value`: Output>) {
        this.`operator` = value
    }

    /**
     * @param value Name of PostArg to be matched
     */
    @JvmName("hvqfurrckahuyswx")
    public suspend fun selector(`value`: Output) {
        this.selector = value
    }

    /**
     * @param value List of transforms
     */
    @JvmName("bybgrsxofeliieqc")
    public suspend fun transforms(`value`: Output>>) {
        this.transforms = value
    }

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

    /**
     * @param values List of transforms
     */
    @JvmName("qcpocnayeqnalfsh")
    public suspend fun transforms(values: List>>) {
        this.transforms = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("hdwvckflgbrtaoly")
    public suspend fun typeName(`value`: Output) {
        this.typeName = value
    }

    /**
     * @param value The match value for the condition of the delivery rule
     */
    @JvmName("jvblfbvllkvatpai")
    public suspend fun matchValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values The match value for the condition of the delivery rule
     */
    @JvmName("baohixjdwvcyjmsv")
    public suspend fun matchValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param value Describes if this is negate condition or not
     */
    @JvmName("xjjlqrlwsngpqsud")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

    /**
     * @param value Describes operator to be matched
     */
    @JvmName("saqxygrkpojxtqpo")
    public suspend fun `operator`(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Describes operator to be matched
     */
    @JvmName("duxhqcpluqpxugpk")
    public fun `operator`(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Describes operator to be matched
     */
    @JvmName("loiegonibttedgpo")
    public fun `operator`(`value`: PostArgsOperator) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Name of PostArg to be matched
     */
    @JvmName("ahtnsllxvybxkfna")
    public suspend fun selector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selector = mapped
    }

    /**
     * @param value List of transforms
     */
    @JvmName("tmjqkbqplulsduty")
    public suspend fun transforms(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param values List of transforms
     */
    @JvmName("ekhjueaxckptcyur")
    public suspend fun transforms(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy