com.pulumi.awsnative.scheduler.kotlin.inputs.ScheduleRetryPolicyArgs.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.scheduler.kotlin.inputs
import com.pulumi.awsnative.scheduler.inputs.ScheduleRetryPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A RetryPolicy object that includes information about the retry policy settings.
* @property maximumEventAgeInSeconds The maximum amount of time, in seconds, to continue to make retry attempts.
* @property maximumRetryAttempts The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff continue until either the maximum number of attempts is made or until the duration of the MaximumEventAgeInSeconds is reached.
*/
public data class ScheduleRetryPolicyArgs(
public val maximumEventAgeInSeconds: Output? = null,
public val maximumRetryAttempts: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.scheduler.inputs.ScheduleRetryPolicyArgs =
com.pulumi.awsnative.scheduler.inputs.ScheduleRetryPolicyArgs.builder()
.maximumEventAgeInSeconds(maximumEventAgeInSeconds?.applyValue({ args0 -> args0 }))
.maximumRetryAttempts(maximumRetryAttempts?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduleRetryPolicyArgs].
*/
@PulumiTagMarker
public class ScheduleRetryPolicyArgsBuilder internal constructor() {
private var maximumEventAgeInSeconds: Output? = null
private var maximumRetryAttempts: Output? = null
/**
* @param value The maximum amount of time, in seconds, to continue to make retry attempts.
*/
@JvmName("dmjqwcasimdsatuc")
public suspend fun maximumEventAgeInSeconds(`value`: Output) {
this.maximumEventAgeInSeconds = value
}
/**
* @param value The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff continue until either the maximum number of attempts is made or until the duration of the MaximumEventAgeInSeconds is reached.
*/
@JvmName("rqlxfmhhjctnvqgh")
public suspend fun maximumRetryAttempts(`value`: Output) {
this.maximumRetryAttempts = value
}
/**
* @param value The maximum amount of time, in seconds, to continue to make retry attempts.
*/
@JvmName("aylxsagxlbstjacb")
public suspend fun maximumEventAgeInSeconds(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumEventAgeInSeconds = mapped
}
/**
* @param value The maximum number of retry attempts to make before the request fails. Retry attempts with exponential backoff continue until either the maximum number of attempts is made or until the duration of the MaximumEventAgeInSeconds is reached.
*/
@JvmName("lcmecbktgjgxlqfq")
public suspend fun maximumRetryAttempts(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumRetryAttempts = mapped
}
internal fun build(): ScheduleRetryPolicyArgs = ScheduleRetryPolicyArgs(
maximumEventAgeInSeconds = maximumEventAgeInSeconds,
maximumRetryAttempts = maximumRetryAttempts,
)
}