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

com.pulumi.azurenative.appplatform.kotlin.inputs.ManualJobTriggerConfigArgs.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.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.ManualJobTriggerConfigArgs.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

/**
 * Configuration for manual triggered job
 * @property parallelism Number of parallel replicas of a job execution can run.
 * @property retryLimit Maximum number of retries before failing the job.
 * @property timeoutInSeconds Maximum number of seconds an execution is allowed to run.
 * @property triggerType Type of job trigger
 * Expected value is 'Manual'.
 */
public data class ManualJobTriggerConfigArgs(
    public val parallelism: Output? = null,
    public val retryLimit: Output? = null,
    public val timeoutInSeconds: Output? = null,
    public val triggerType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.ManualJobTriggerConfigArgs =
        com.pulumi.azurenative.appplatform.inputs.ManualJobTriggerConfigArgs.builder()
            .parallelism(parallelism?.applyValue({ args0 -> args0 }))
            .retryLimit(retryLimit?.applyValue({ args0 -> args0 }))
            .timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 }))
            .triggerType(triggerType.applyValue({ args0 -> args0 })).build()
}

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

    private var retryLimit: Output? = null

    private var timeoutInSeconds: Output? = null

    private var triggerType: Output? = null

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

    /**
     * @param value Maximum number of retries before failing the job.
     */
    @JvmName("irhurdlcyibdvieb")
    public suspend fun retryLimit(`value`: Output) {
        this.retryLimit = value
    }

    /**
     * @param value Maximum number of seconds an execution is allowed to run.
     */
    @JvmName("fltylcdqupgwvhtf")
    public suspend fun timeoutInSeconds(`value`: Output) {
        this.timeoutInSeconds = value
    }

    /**
     * @param value Type of job trigger
     * Expected value is 'Manual'.
     */
    @JvmName("ysaqmvfcqwspnyuo")
    public suspend fun triggerType(`value`: Output) {
        this.triggerType = value
    }

    /**
     * @param value Number of parallel replicas of a job execution can run.
     */
    @JvmName("gusvirceraenwwka")
    public suspend fun parallelism(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelism = mapped
    }

    /**
     * @param value Maximum number of retries before failing the job.
     */
    @JvmName("ojmfpuuhfxetiweb")
    public suspend fun retryLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryLimit = mapped
    }

    /**
     * @param value Maximum number of seconds an execution is allowed to run.
     */
    @JvmName("algotcihoxsoyyot")
    public suspend fun timeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutInSeconds = mapped
    }

    /**
     * @param value Type of job trigger
     * Expected value is 'Manual'.
     */
    @JvmName("tcdcrqoayjwesigf")
    public suspend fun triggerType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.triggerType = mapped
    }

    internal fun build(): ManualJobTriggerConfigArgs = ManualJobTriggerConfigArgs(
        parallelism = parallelism,
        retryLimit = retryLimit,
        timeoutInSeconds = timeoutInSeconds,
        triggerType = triggerType ?: throw PulumiNullFieldException("triggerType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy