com.pulumi.gcp.pubsub.kotlin.inputs.SubscriptionRetryPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.pubsub.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.SubscriptionRetryPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maximumBackoff The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
* @property minimumBackoff The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
public data class SubscriptionRetryPolicyArgs(
public val maximumBackoff: Output? = null,
public val minimumBackoff: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.pubsub.inputs.SubscriptionRetryPolicyArgs =
com.pulumi.gcp.pubsub.inputs.SubscriptionRetryPolicyArgs.builder()
.maximumBackoff(maximumBackoff?.applyValue({ args0 -> args0 }))
.minimumBackoff(minimumBackoff?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SubscriptionRetryPolicyArgs].
*/
@PulumiTagMarker
public class SubscriptionRetryPolicyArgsBuilder internal constructor() {
private var maximumBackoff: Output? = null
private var minimumBackoff: Output? = null
/**
* @param value The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("vdvqubodhrjhhobw")
public suspend fun maximumBackoff(`value`: Output) {
this.maximumBackoff = value
}
/**
* @param value The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("qlchqsskoucssruj")
public suspend fun minimumBackoff(`value`: Output) {
this.minimumBackoff = value
}
/**
* @param value The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("jqdlrkurfttcbxbh")
public suspend fun maximumBackoff(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumBackoff = mapped
}
/**
* @param value The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("yofedwoymvbttoei")
public suspend fun minimumBackoff(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimumBackoff = mapped
}
internal fun build(): SubscriptionRetryPolicyArgs = SubscriptionRetryPolicyArgs(
maximumBackoff = maximumBackoff,
minimumBackoff = minimumBackoff,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy