com.pulumi.awsnative.iot.kotlin.inputs.JobTemplateRetryCriteriaArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.JobTemplateRetryCriteriaArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.JobTemplateJobRetryFailureType
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
/**
* Specifies how many times a failure type should be retried.
* @property failureType The type of job execution failures that can initiate a job retry.
* @property numberOfRetries The number of retries allowed for a failure type for the job.
*/
public data class JobTemplateRetryCriteriaArgs(
public val failureType: Output? = null,
public val numberOfRetries: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.JobTemplateRetryCriteriaArgs =
com.pulumi.awsnative.iot.inputs.JobTemplateRetryCriteriaArgs.builder()
.failureType(failureType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.numberOfRetries(numberOfRetries?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobTemplateRetryCriteriaArgs].
*/
@PulumiTagMarker
public class JobTemplateRetryCriteriaArgsBuilder internal constructor() {
private var failureType: Output? = null
private var numberOfRetries: Output? = null
/**
* @param value The type of job execution failures that can initiate a job retry.
*/
@JvmName("jmrclyxbowaagter")
public suspend fun failureType(`value`: Output) {
this.failureType = value
}
/**
* @param value The number of retries allowed for a failure type for the job.
*/
@JvmName("osjlfycpwmxqdqnk")
public suspend fun numberOfRetries(`value`: Output) {
this.numberOfRetries = value
}
/**
* @param value The type of job execution failures that can initiate a job retry.
*/
@JvmName("rkimatwomeqmaeqt")
public suspend fun failureType(`value`: JobTemplateJobRetryFailureType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failureType = mapped
}
/**
* @param value The number of retries allowed for a failure type for the job.
*/
@JvmName("rrlxnqcimlexseaf")
public suspend fun numberOfRetries(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.numberOfRetries = mapped
}
internal fun build(): JobTemplateRetryCriteriaArgs = JobTemplateRetryCriteriaArgs(
failureType = failureType,
numberOfRetries = numberOfRetries,
)
}