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

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

/**
 * Trigger that runs every time the selected Blob container changes.
 * @property annotations List of tags that can be used for describing the trigger.
 * @property description Trigger description.
 * @property folderPath The path of the container/folder that will trigger the pipeline.
 * @property linkedService The Azure Storage linked service reference.
 * @property maxConcurrency The max number of parallel files to handle when it is triggered.
 * @property pipelines Pipelines that need to be started.
 * @property type Trigger type.
 * Expected value is 'BlobTrigger'.
 */
public data class BlobTriggerArgs(
    public val annotations: Output>? = null,
    public val description: Output? = null,
    public val folderPath: Output,
    public val linkedService: Output,
    public val maxConcurrency: Output,
    public val pipelines: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.BlobTriggerArgs =
        com.pulumi.azurenative.datafactory.inputs.BlobTriggerArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .folderPath(folderPath.applyValue({ args0 -> args0 }))
            .linkedService(linkedService.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxConcurrency(maxConcurrency.applyValue({ args0 -> args0 }))
            .pipelines(
                pipelines?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var folderPath: Output? = null

    private var linkedService: Output? = null

    private var maxConcurrency: Output? = null

    private var pipelines: Output>? = null

    private var type: Output? = null

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

    @JvmName("dsulwoodiwvjnpbd")
    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("oggdayapupiyxtrw")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

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

    /**
     * @param value The path of the container/folder that will trigger the pipeline.
     */
    @JvmName("fpkbwfplaoofmiqo")
    public suspend fun folderPath(`value`: Output) {
        this.folderPath = value
    }

    /**
     * @param value The Azure Storage linked service reference.
     */
    @JvmName("nbmwsaoymwmopiwm")
    public suspend fun linkedService(`value`: Output) {
        this.linkedService = value
    }

    /**
     * @param value The max number of parallel files to handle when it is triggered.
     */
    @JvmName("msfkcpmekrtiktgf")
    public suspend fun maxConcurrency(`value`: Output) {
        this.maxConcurrency = value
    }

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

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

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

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

    /**
     * @param value List of tags that can be used for describing the trigger.
     */
    @JvmName("tprboogflbyxxiya")
    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("xcksqkbfntckrnqp")
    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("qvaycdglnfosdfbc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The path of the container/folder that will trigger the pipeline.
     */
    @JvmName("gbculgoebgdafrlb")
    public suspend fun folderPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.folderPath = mapped
    }

    /**
     * @param value The Azure Storage linked service reference.
     */
    @JvmName("kipyteluhjrarwcs")
    public suspend fun linkedService(`value`: LinkedServiceReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkedService = mapped
    }

    /**
     * @param argument The Azure Storage linked service reference.
     */
    @JvmName("wdffrcijkibhpbgv")
    public suspend fun linkedService(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linkedService = mapped
    }

    /**
     * @param value The max number of parallel files to handle when it is triggered.
     */
    @JvmName("rlyumbjwnhxdmlnh")
    public suspend fun maxConcurrency(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxConcurrency = mapped
    }

    /**
     * @param value Pipelines that need to be started.
     */
    @JvmName("qpnpwjbbsuabbhgi")
    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("ekeeslhfoqpiluvf")
    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("eydrmikiwnraohfv")
    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("xgsdeqwqqnlnpgqa")
    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("tgdgefrcfufgrtsp")
    public suspend fun pipelines(vararg values: TriggerPipelineReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pipelines = mapped
    }

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

    internal fun build(): BlobTriggerArgs = BlobTriggerArgs(
        annotations = annotations,
        description = description,
        folderPath = folderPath ?: throw PulumiNullFieldException("folderPath"),
        linkedService = linkedService ?: throw PulumiNullFieldException("linkedService"),
        maxConcurrency = maxConcurrency ?: throw PulumiNullFieldException("maxConcurrency"),
        pipelines = pipelines,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy