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

com.pulumi.azure.cdn.kotlin.inputs.EndpointDeliveryRuleDeviceConditionArgs.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.EndpointDeliveryRuleDeviceConditionArgs.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 Valid values are `Desktop` and `Mobile`.
 * @property negateCondition Defaults to `false`.
 * @property operator Valid values are `Equal`. Defaults to `Equal`.
 */
public data class EndpointDeliveryRuleDeviceConditionArgs(
    public val matchValues: Output>,
    public val negateCondition: Output? = null,
    public val `operator`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleDeviceConditionArgs =
        com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleDeviceConditionArgs.builder()
            .matchValues(matchValues.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`?.applyValue({ args0 -> args0 })).build()
}

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

    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    /**
     * @param value Valid values are `Desktop` and `Mobile`.
     */
    @JvmName("rxehreetkcmxbmxm")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

    /**
     * @param values Valid values are `Desktop` and `Mobile`.
     */
    @JvmName("qujejwediaudypvr")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

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

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

    /**
     * @param value Valid values are `Desktop` and `Mobile`.
     */
    @JvmName("roejvkiqncpbgqbs")
    public suspend fun matchValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values Valid values are `Desktop` and `Mobile`.
     */
    @JvmName("fqstfiwjjvqhfwle")
    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("hgqxwsobqaqpuqdw")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy