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

com.pulumi.azurenative.app.kotlin.inputs.JobConfigurationEventTriggerConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.JobConfigurationEventTriggerConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Trigger configuration of an event driven 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.
 * @property scale Scaling configurations for event driven jobs.
 */
public data class JobConfigurationEventTriggerConfigArgs(
    public val parallelism: Output? = null,
    public val replicaCompletionCount: Output? = null,
    public val scale: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.JobConfigurationEventTriggerConfigArgs =
        com.pulumi.azurenative.app.inputs.JobConfigurationEventTriggerConfigArgs.builder()
            .parallelism(parallelism?.applyValue({ args0 -> args0 }))
            .replicaCompletionCount(replicaCompletionCount?.applyValue({ args0 -> args0 }))
            .scale(scale?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobConfigurationEventTriggerConfigArgs].
 */
@PulumiTagMarker
public class JobConfigurationEventTriggerConfigArgsBuilder internal constructor() {
    private var parallelism: Output? = null

    private var replicaCompletionCount: Output? = null

    private var scale: Output? = null

    /**
     * @param value Number of parallel replicas of a job that can run at a given time.
     */
    @JvmName("icfxrmduhmomnpea")
    public suspend fun parallelism(`value`: Output) {
        this.parallelism = value
    }

    /**
     * @param value Minimum number of successful replica completions before overall job completion.
     */
    @JvmName("vcnsikhjyemmqxcp")
    public suspend fun replicaCompletionCount(`value`: Output) {
        this.replicaCompletionCount = value
    }

    /**
     * @param value Scaling configurations for event driven jobs.
     */
    @JvmName("vpgxnrarqtmkfoqk")
    public suspend fun scale(`value`: Output) {
        this.scale = value
    }

    /**
     * @param value Number of parallel replicas of a job that can run at a given time.
     */
    @JvmName("pbyxblkqcnkamhkk")
    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("rxvlmtjgcfchmjif")
    public suspend fun replicaCompletionCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicaCompletionCount = mapped
    }

    /**
     * @param value Scaling configurations for event driven jobs.
     */
    @JvmName("trfovluxaehgtoth")
    public suspend fun scale(`value`: JobScaleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scale = mapped
    }

    /**
     * @param argument Scaling configurations for event driven jobs.
     */
    @JvmName("gihfthwfopbertvr")
    public suspend fun scale(argument: suspend JobScaleArgsBuilder.() -> Unit) {
        val toBeMapped = JobScaleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.scale = mapped
    }

    internal fun build(): JobConfigurationEventTriggerConfigArgs =
        JobConfigurationEventTriggerConfigArgs(
            parallelism = parallelism,
            replicaCompletionCount = replicaCompletionCount,
            scale = scale,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy