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

com.pulumi.azure.cdn.kotlin.inputs.FrontdoorRuleConditionsRequestMethodConditionArgs.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.FrontdoorRuleConditionsRequestMethodConditionArgs.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 A list of one or more HTTP methods. Possible values include `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS` or `TRACE`. If multiple values are specified, they're evaluated using `OR` logic.
 * @property negateCondition If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
 * @property operator Possible value `Equal`. Defaults to `Equal`.
 */
public data class FrontdoorRuleConditionsRequestMethodConditionArgs(
    public val matchValues: Output>,
    public val negateCondition: Output? = null,
    public val `operator`: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsRequestMethodConditionArgs =
        com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsRequestMethodConditionArgs.builder()
            .matchValues(matchValues.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`?.applyValue({ args0 -> args0 })).build()
}

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

    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    /**
     * @param value A list of one or more HTTP methods. Possible values include `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS` or `TRACE`. If multiple values are specified, they're evaluated using `OR` logic.
     */
    @JvmName("fimgxhghnhieckjf")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

    /**
     * @param values A list of one or more HTTP methods. Possible values include `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS` or `TRACE`. If multiple values are specified, they're evaluated using `OR` logic.
     */
    @JvmName("joaskbfedpnirmeo")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

    /**
     * @param value If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     */
    @JvmName("enbghrgecklkdewx")
    public suspend fun negateCondition(`value`: Output) {
        this.negateCondition = value
    }

    /**
     * @param value Possible value `Equal`. Defaults to `Equal`.
     */
    @JvmName("ygnfaktdtkqjdomc")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value A list of one or more HTTP methods. Possible values include `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS` or `TRACE`. If multiple values are specified, they're evaluated using `OR` logic.
     */
    @JvmName("mdwrasfpmbtxaflw")
    public suspend fun matchValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values A list of one or more HTTP methods. Possible values include `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS` or `TRACE`. If multiple values are specified, they're evaluated using `OR` logic.
     */
    @JvmName("weiaufivavlpwyqv")
    public suspend fun matchValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param value If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     */
    @JvmName("nxhvnmnwcbpwbrok")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

    /**
     * @param value Possible value `Equal`. Defaults to `Equal`.
     */
    @JvmName("lpxuglykvjrlfvyf")
    public suspend fun `operator`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy