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

com.pulumi.aws.glue.kotlin.inputs.TriggerPredicateArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.glue.kotlin.inputs

import com.pulumi.aws.glue.inputs.TriggerPredicateArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property conditions A list of the conditions that determine when the trigger will fire. See Conditions.
 * @property logical How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`.
 */
public data class TriggerPredicateArgs(
    public val conditions: Output>,
    public val logical: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.glue.inputs.TriggerPredicateArgs =
        com.pulumi.aws.glue.inputs.TriggerPredicateArgs.builder()
            .conditions(
                conditions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .logical(logical?.applyValue({ args0 -> args0 })).build()
}

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

    private var logical: Output? = null

    /**
     * @param value A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("njbwxmqcnqvletub")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

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

    /**
     * @param values A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("mrtbeuojrenssnul")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`.
     */
    @JvmName("nkjdpumfjtqxeykm")
    public suspend fun logical(`value`: Output) {
        this.logical = value
    }

    /**
     * @param value A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("iovjmnplpggdixbf")
    public suspend fun conditions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("bmyrdroabqcdjtrv")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TriggerPredicateConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("uooxvgiicglsxsyt")
    public suspend fun conditions(vararg argument: suspend TriggerPredicateConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TriggerPredicateConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("rstogwwccygeyuld")
    public suspend fun conditions(argument: suspend TriggerPredicateConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TriggerPredicateConditionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values A list of the conditions that determine when the trigger will fire. See Conditions.
     */
    @JvmName("cecacyjlawwrrrgd")
    public suspend fun conditions(vararg values: TriggerPredicateConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`.
     */
    @JvmName("jxugsfwpadmjuwqp")
    public suspend fun logical(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logical = mapped
    }

    internal fun build(): TriggerPredicateArgs = TriggerPredicateArgs(
        conditions = conditions ?: throw PulumiNullFieldException("conditions"),
        logical = logical,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy