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

com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationTriggerConfigArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.customerprofiles.kotlin.inputs

import com.pulumi.awsnative.customerprofiles.inputs.IntegrationTriggerConfigArgs.builder
import com.pulumi.awsnative.customerprofiles.kotlin.enums.IntegrationTriggerType
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

/**
 *
 * @property triggerProperties Specifies the configuration details of a schedule-triggered flow that you define. Currently, these settings only apply to the Scheduled trigger type.
 * @property triggerType Specifies the type of flow trigger. It can be OnDemand, Scheduled, or Event.
 */
public data class IntegrationTriggerConfigArgs(
    public val triggerProperties: Output? = null,
    public val triggerType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.customerprofiles.inputs.IntegrationTriggerConfigArgs =
        com.pulumi.awsnative.customerprofiles.inputs.IntegrationTriggerConfigArgs.builder()
            .triggerProperties(triggerProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .triggerType(triggerType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [IntegrationTriggerConfigArgs].
 */
@PulumiTagMarker
public class IntegrationTriggerConfigArgsBuilder internal constructor() {
    private var triggerProperties: Output? = null

    private var triggerType: Output? = null

    /**
     * @param value Specifies the configuration details of a schedule-triggered flow that you define. Currently, these settings only apply to the Scheduled trigger type.
     */
    @JvmName("ogfflggsmcmbrite")
    public suspend fun triggerProperties(`value`: Output) {
        this.triggerProperties = value
    }

    /**
     * @param value Specifies the type of flow trigger. It can be OnDemand, Scheduled, or Event.
     */
    @JvmName("vlbiuunbdxseumjd")
    public suspend fun triggerType(`value`: Output) {
        this.triggerType = value
    }

    /**
     * @param value Specifies the configuration details of a schedule-triggered flow that you define. Currently, these settings only apply to the Scheduled trigger type.
     */
    @JvmName("qdngftfacyqqnewr")
    public suspend fun triggerProperties(`value`: IntegrationTriggerPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.triggerProperties = mapped
    }

    /**
     * @param argument Specifies the configuration details of a schedule-triggered flow that you define. Currently, these settings only apply to the Scheduled trigger type.
     */
    @JvmName("dnabpqgbbqdmgghb")
    public suspend fun triggerProperties(argument: suspend IntegrationTriggerPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationTriggerPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.triggerProperties = mapped
    }

    /**
     * @param value Specifies the type of flow trigger. It can be OnDemand, Scheduled, or Event.
     */
    @JvmName("icampqiattpdwhiu")
    public suspend fun triggerType(`value`: IntegrationTriggerType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.triggerType = mapped
    }

    internal fun build(): IntegrationTriggerConfigArgs = IntegrationTriggerConfigArgs(
        triggerProperties = triggerProperties,
        triggerType = triggerType ?: throw PulumiNullFieldException("triggerType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy