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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property conditions Conditions to apply to the expression
 * Structure is documented below.
 * @property logicalOperator The operator to apply to the collection of conditions
 * Possible values are: `OR`, `AND`.
 */
public data class PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs(
    public val conditions: Output>? =
        null,
    public val logicalOperator: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs.builder()
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .logicalOperator(logicalOperator?.applyValue({ args0 -> args0 })).build()
}

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

    private var logicalOperator: Output? = null

    /**
     * @param value Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("iypkpigndrxvykdj")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

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

    /**
     * @param values Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("dojpthkqqfdopnki")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value The operator to apply to the collection of conditions
     * Possible values are: `OR`, `AND`.
     */
    @JvmName("nqikfxqvowomcnat")
    public suspend fun logicalOperator(`value`: Output) {
        this.logicalOperator = value
    }

    /**
     * @param value Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("wktrdecauvsfftos")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("ywvqpiihvblwvsif")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("jqqbjwiyyoybulic")
    public suspend fun conditions(vararg argument: suspend PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("qqefqbiucibxmpad")
    public suspend fun conditions(argument: suspend PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values Conditions to apply to the expression
     * Structure is documented below.
     */
    @JvmName("vjdvrkvjjinigkqn")
    public suspend fun conditions(vararg values: PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value The operator to apply to the collection of conditions
     * Possible values are: `OR`, `AND`.
     */
    @JvmName("gwncqbovwyvwcmqm")
    public suspend fun logicalOperator(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logicalOperator = mapped
    }

    internal fun build(): PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs =
        PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionExpressionsArgs(
            conditions = conditions,
            logicalOperator = logicalOperator,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy