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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeBatchRetryStrategyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeBatchRetryStrategyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property attempts The number of times to move a job to the `RUNNABLE` status. If the value of `attempts` is greater than one, the job is retried on failure the same number of attempts as the value.
 */
public data class PipeBatchRetryStrategyArgs(
    public val attempts: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeBatchRetryStrategyArgs =
        com.pulumi.awsnative.pipes.inputs.PipeBatchRetryStrategyArgs.builder()
            .attempts(attempts?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipeBatchRetryStrategyArgs].
 */
@PulumiTagMarker
public class PipeBatchRetryStrategyArgsBuilder internal constructor() {
    private var attempts: Output? = null

    /**
     * @param value The number of times to move a job to the `RUNNABLE` status. If the value of `attempts` is greater than one, the job is retried on failure the same number of attempts as the value.
     */
    @JvmName("lgqonjboxbqckbyp")
    public suspend fun attempts(`value`: Output) {
        this.attempts = value
    }

    /**
     * @param value The number of times to move a job to the `RUNNABLE` status. If the value of `attempts` is greater than one, the job is retried on failure the same number of attempts as the value.
     */
    @JvmName("dlvualwrdgmqbcna")
    public suspend fun attempts(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attempts = mapped
    }

    internal fun build(): PipeBatchRetryStrategyArgs = PipeBatchRetryStrategyArgs(
        attempts = attempts,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy