com.pulumi.azure.eventgrid.kotlin.inputs.EventSubscriptionRetryPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.eventgrid.kotlin.inputs
import com.pulumi.azure.eventgrid.inputs.EventSubscriptionRetryPolicyArgs.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.Suppress
import kotlin.jvm.JvmName
/**
*
* @property eventTimeToLive Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. See [official documentation](https://docs.microsoft.com/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
* @property maxDeliveryAttempts Specifies the maximum number of delivery retry attempts for events.
*/
public data class EventSubscriptionRetryPolicyArgs(
public val eventTimeToLive: Output,
public val maxDeliveryAttempts: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventgrid.inputs.EventSubscriptionRetryPolicyArgs =
com.pulumi.azure.eventgrid.inputs.EventSubscriptionRetryPolicyArgs.builder()
.eventTimeToLive(eventTimeToLive.applyValue({ args0 -> args0 }))
.maxDeliveryAttempts(maxDeliveryAttempts.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventSubscriptionRetryPolicyArgs].
*/
@PulumiTagMarker
public class EventSubscriptionRetryPolicyArgsBuilder internal constructor() {
private var eventTimeToLive: Output? = null
private var maxDeliveryAttempts: Output? = null
/**
* @param value Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. See [official documentation](https://docs.microsoft.com/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
*/
@JvmName("fgljkvetbmqloivq")
public suspend fun eventTimeToLive(`value`: Output) {
this.eventTimeToLive = value
}
/**
* @param value Specifies the maximum number of delivery retry attempts for events.
*/
@JvmName("vmqoixiflufmyocd")
public suspend fun maxDeliveryAttempts(`value`: Output) {
this.maxDeliveryAttempts = value
}
/**
* @param value Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. See [official documentation](https://docs.microsoft.com/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
*/
@JvmName("ikglboxvtbpueydd")
public suspend fun eventTimeToLive(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventTimeToLive = mapped
}
/**
* @param value Specifies the maximum number of delivery retry attempts for events.
*/
@JvmName("fmruhlfggovnjnof")
public suspend fun maxDeliveryAttempts(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxDeliveryAttempts = mapped
}
internal fun build(): EventSubscriptionRetryPolicyArgs = EventSubscriptionRetryPolicyArgs(
eventTimeToLive = eventTimeToLive ?: throw PulumiNullFieldException("eventTimeToLive"),
maxDeliveryAttempts = maxDeliveryAttempts ?: throw PulumiNullFieldException("maxDeliveryAttempts"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy