com.pulumi.azurenative.datafactory.kotlin.inputs.ScheduleTriggerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.ScheduleTriggerArgs.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 creates pipeline runs periodically, on schedule.
* @property annotations List of tags that can be used for describing the trigger.
* @property description Trigger description.
* @property pipelines Pipelines that need to be started.
* @property recurrence Recurrence schedule configuration.
* @property type Trigger type.
* Expected value is 'ScheduleTrigger'.
*/
public data class ScheduleTriggerArgs(
public val annotations: Output>? = null,
public val description: Output? = null,
public val pipelines: Output>? = null,
public val recurrence: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.ScheduleTriggerArgs =
com.pulumi.azurenative.datafactory.inputs.ScheduleTriggerArgs.builder()
.annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.description(description?.applyValue({ args0 -> args0 }))
.pipelines(
pipelines?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.recurrence(recurrence.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduleTriggerArgs].
*/
@PulumiTagMarker
public class ScheduleTriggerArgsBuilder internal constructor() {
private var annotations: Output>? = null
private var description: Output? = null
private var pipelines: Output>? = null
private var recurrence: Output? = null
private var type: Output? = null
/**
* @param value List of tags that can be used for describing the trigger.
*/
@JvmName("mprrjkcmwekotefx")
public suspend fun annotations(`value`: Output>) {
this.annotations = value
}
@JvmName("nnultsdhctrypvpw")
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("umfubvdgwbuumaik")
public suspend fun annotations(values: List