![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerapp.kotlin.inputs.JobScheduleTriggerConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.JobScheduleTriggerConfigArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cronExpression Cron formatted repeating schedule of a Cron Job.
* @property parallelism Number of parallel replicas of a job that can run at a given time.
* @property replicaCompletionCount Minimum number of successful replica completions before overall job completion.
*/
public data class JobScheduleTriggerConfigArgs(
public val cronExpression: Output,
public val parallelism: Output? = null,
public val replicaCompletionCount: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.JobScheduleTriggerConfigArgs =
com.pulumi.azure.containerapp.inputs.JobScheduleTriggerConfigArgs.builder()
.cronExpression(cronExpression.applyValue({ args0 -> args0 }))
.parallelism(parallelism?.applyValue({ args0 -> args0 }))
.replicaCompletionCount(replicaCompletionCount?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobScheduleTriggerConfigArgs].
*/
@PulumiTagMarker
public class JobScheduleTriggerConfigArgsBuilder internal constructor() {
private var cronExpression: Output? = null
private var parallelism: Output? = null
private var replicaCompletionCount: Output? = null
/**
* @param value Cron formatted repeating schedule of a Cron Job.
*/
@JvmName("nmgdihrimofiswsq")
public suspend fun cronExpression(`value`: Output) {
this.cronExpression = value
}
/**
* @param value Number of parallel replicas of a job that can run at a given time.
*/
@JvmName("wflttiltekkraqja")
public suspend fun parallelism(`value`: Output) {
this.parallelism = value
}
/**
* @param value Minimum number of successful replica completions before overall job completion.
*/
@JvmName("jxgopeyenpukvgpo")
public suspend fun replicaCompletionCount(`value`: Output) {
this.replicaCompletionCount = value
}
/**
* @param value Cron formatted repeating schedule of a Cron Job.
*/
@JvmName("ulwqdlipomhfjhpd")
public suspend fun cronExpression(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cronExpression = mapped
}
/**
* @param value Number of parallel replicas of a job that can run at a given time.
*/
@JvmName("ixnkelvdyquxauad")
public suspend fun parallelism(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parallelism = mapped
}
/**
* @param value Minimum number of successful replica completions before overall job completion.
*/
@JvmName("ioqnjrdyuyfqnfcy")
public suspend fun replicaCompletionCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicaCompletionCount = mapped
}
internal fun build(): JobScheduleTriggerConfigArgs = JobScheduleTriggerConfigArgs(
cronExpression = cronExpression ?: throw PulumiNullFieldException("cronExpression"),
parallelism = parallelism,
replicaCompletionCount = replicaCompletionCount,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy