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

com.pulumi.azurenative.datafactory.kotlin.inputs.CustomEventsTriggerArgs.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.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.CustomEventsTriggerArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Trigger that runs every time a custom event is received.
 * @property annotations List of tags that can be used for describing the trigger.
 * @property description Trigger description.
 * @property events The list of event types that cause this trigger to fire.
 * @property pipelines Pipelines that need to be started.
 * @property scope The ARM resource ID of the Azure Event Grid Topic.
 * @property subjectBeginsWith The event subject must begin with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
 * @property subjectEndsWith The event subject must end with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
 * @property type Trigger type.
 * Expected value is 'CustomEventsTrigger'.
 */
public data class CustomEventsTriggerArgs(
    public val annotations: Output>? = null,
    public val description: Output? = null,
    public val events: Output>,
    public val pipelines: Output>? = null,
    public val scope: Output,
    public val subjectBeginsWith: Output? = null,
    public val subjectEndsWith: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.CustomEventsTriggerArgs =
        com.pulumi.azurenative.datafactory.inputs.CustomEventsTriggerArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .events(events.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .pipelines(
                pipelines?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .scope(scope.applyValue({ args0 -> args0 }))
            .subjectBeginsWith(subjectBeginsWith?.applyValue({ args0 -> args0 }))
            .subjectEndsWith(subjectEndsWith?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var events: Output>? = null

    private var pipelines: Output>? = null

    private var scope: Output? = null

    private var subjectBeginsWith: Output? = null

    private var subjectEndsWith: Output? = null

    private var type: Output? = null

    /**
     * @param value List of tags that can be used for describing the trigger.
     */
    @JvmName("ccqwuykgdcagmfxt")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

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

    /**
     * @param values List of tags that can be used for describing the trigger.
     */
    @JvmName("hlvmmwdatcptrqxu")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

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

    /**
     * @param value The list of event types that cause this trigger to fire.
     */
    @JvmName("wopogdsrqlamfich")
    public suspend fun events(`value`: Output>) {
        this.events = value
    }

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

    /**
     * @param values The list of event types that cause this trigger to fire.
     */
    @JvmName("xcychuvlujehqyeb")
    public suspend fun events(values: List>) {
        this.events = Output.all(values)
    }

    /**
     * @param value Pipelines that need to be started.
     */
    @JvmName("gdayyeoxjskwuhdf")
    public suspend fun pipelines(`value`: Output>) {
        this.pipelines = value
    }

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

    /**
     * @param values Pipelines that need to be started.
     */
    @JvmName("tvetvtbaiedinhor")
    public suspend fun pipelines(values: List>) {
        this.pipelines = Output.all(values)
    }

    /**
     * @param value The ARM resource ID of the Azure Event Grid Topic.
     */
    @JvmName("ehnrkfopqrbifujv")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value The event subject must begin with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
     */
    @JvmName("oktdcemltqxspich")
    public suspend fun subjectBeginsWith(`value`: Output) {
        this.subjectBeginsWith = value
    }

    /**
     * @param value The event subject must end with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
     */
    @JvmName("ahhpvwcgdqktqnah")
    public suspend fun subjectEndsWith(`value`: Output) {
        this.subjectEndsWith = value
    }

    /**
     * @param value Trigger type.
     * Expected value is 'CustomEventsTrigger'.
     */
    @JvmName("skjaioxujpwprcxr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value List of tags that can be used for describing the trigger.
     */
    @JvmName("savbmaixiwwewybx")
    public suspend fun annotations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values List of tags that can be used for describing the trigger.
     */
    @JvmName("qdkpxugtrkmrmbvv")
    public suspend fun annotations(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

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

    /**
     * @param value The list of event types that cause this trigger to fire.
     */
    @JvmName("kavrvxpbgwrxbtov")
    public suspend fun events(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param values The list of event types that cause this trigger to fire.
     */
    @JvmName("omchuobtdyvvnqph")
    public suspend fun events(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param value Pipelines that need to be started.
     */
    @JvmName("ndkryllamarwqgvo")
    public suspend fun pipelines(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelines = mapped
    }

    /**
     * @param argument Pipelines that need to be started.
     */
    @JvmName("wyifglxegjkwssav")
    public suspend fun pipelines(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TriggerPipelineReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pipelines = mapped
    }

    /**
     * @param argument Pipelines that need to be started.
     */
    @JvmName("wrbdgxwaaeywawnh")
    public suspend fun pipelines(vararg argument: suspend TriggerPipelineReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TriggerPipelineReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pipelines = mapped
    }

    /**
     * @param argument Pipelines that need to be started.
     */
    @JvmName("txtdojrhuwoqwdyi")
    public suspend fun pipelines(argument: suspend TriggerPipelineReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TriggerPipelineReferenceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.pipelines = mapped
    }

    /**
     * @param values Pipelines that need to be started.
     */
    @JvmName("yylubsmnduojlxvn")
    public suspend fun pipelines(vararg values: TriggerPipelineReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pipelines = mapped
    }

    /**
     * @param value The ARM resource ID of the Azure Event Grid Topic.
     */
    @JvmName("bkqjgnfwnrgwntjx")
    public suspend fun scope(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value The event subject must begin with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
     */
    @JvmName("aexsprdnloqiywwx")
    public suspend fun subjectBeginsWith(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subjectBeginsWith = mapped
    }

    /**
     * @param value The event subject must end with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, subjectEndsWith.
     */
    @JvmName("kporawwdjbkhweii")
    public suspend fun subjectEndsWith(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subjectEndsWith = mapped
    }

    /**
     * @param value Trigger type.
     * Expected value is 'CustomEventsTrigger'.
     */
    @JvmName("cdelvavmpmttbnwy")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): CustomEventsTriggerArgs = CustomEventsTriggerArgs(
        annotations = annotations,
        description = description,
        events = events ?: throw PulumiNullFieldException("events"),
        pipelines = pipelines,
        scope = scope ?: throw PulumiNullFieldException("scope"),
        subjectBeginsWith = subjectBeginsWith,
        subjectEndsWith = subjectEndsWith,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy