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

com.pulumi.azurenative.storage.kotlin.inputs.ExecutionTriggerArgs.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.storage.kotlin.inputs

import com.pulumi.azurenative.storage.inputs.ExecutionTriggerArgs.builder
import com.pulumi.azurenative.storage.kotlin.enums.TriggerType
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Execution trigger for storage task assignment
 * @property parameters The trigger parameters of the storage task assignment execution
 * @property type The trigger type of the storage task assignment execution
 */
public data class ExecutionTriggerArgs(
    public val parameters: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storage.inputs.ExecutionTriggerArgs =
        com.pulumi.azurenative.storage.inputs.ExecutionTriggerArgs.builder()
            .parameters(parameters.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ExecutionTriggerArgs].
 */
@PulumiTagMarker
public class ExecutionTriggerArgsBuilder internal constructor() {
    private var parameters: Output? = null

    private var type: Output? = null

    /**
     * @param value The trigger parameters of the storage task assignment execution
     */
    @JvmName("wshaddsqatbppyag")
    public suspend fun parameters(`value`: Output) {
        this.parameters = value
    }

    /**
     * @param value The trigger type of the storage task assignment execution
     */
    @JvmName("yqroltodmaxwncnd")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The trigger parameters of the storage task assignment execution
     */
    @JvmName("uvpaxnmuqixbjopy")
    public suspend fun parameters(`value`: TriggerParametersArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument The trigger parameters of the storage task assignment execution
     */
    @JvmName("kknnknnpcjvqpnau")
    public suspend fun parameters(argument: suspend TriggerParametersArgsBuilder.() -> Unit) {
        val toBeMapped = TriggerParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param value The trigger type of the storage task assignment execution
     */
    @JvmName("niwswukvchivsiyv")
    public suspend fun type(`value`: TriggerType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ExecutionTriggerArgs = ExecutionTriggerArgs(
        parameters = parameters ?: throw PulumiNullFieldException("parameters"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy