![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.app.kotlin.inputs.HttpRetryPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.HttpRetryPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Policy that defines http request retry conditions
* @property errors Errors that can trigger a retry
* @property headers Headers that must be present for a request to be retried
* @property httpStatusCodes Additional http status codes that can trigger a retry
* @property initialDelayInMilliseconds Initial delay, in milliseconds, before retrying a request
* @property maxIntervalInMilliseconds Maximum interval, in milliseconds, between retries
* @property maxRetries Maximum number of times a request will retry
*/
public data class HttpRetryPolicyArgs(
public val errors: Output>? = null,
public val headers: Output>? = null,
public val httpStatusCodes: Output>? = null,
public val initialDelayInMilliseconds: Output? = null,
public val maxIntervalInMilliseconds: Output? = null,
public val maxRetries: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.HttpRetryPolicyArgs =
com.pulumi.azurenative.app.inputs.HttpRetryPolicyArgs.builder()
.errors(errors?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.httpStatusCodes(httpStatusCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.initialDelayInMilliseconds(initialDelayInMilliseconds?.applyValue({ args0 -> args0 }))
.maxIntervalInMilliseconds(maxIntervalInMilliseconds?.applyValue({ args0 -> args0 }))
.maxRetries(maxRetries?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HttpRetryPolicyArgs].
*/
@PulumiTagMarker
public class HttpRetryPolicyArgsBuilder internal constructor() {
private var errors: Output>? = null
private var headers: Output>? = null
private var httpStatusCodes: Output>? = null
private var initialDelayInMilliseconds: Output? = null
private var maxIntervalInMilliseconds: Output? = null
private var maxRetries: Output? = null
/**
* @param value Errors that can trigger a retry
*/
@JvmName("iedfophrkqjaiybj")
public suspend fun errors(`value`: Output>) {
this.errors = value
}
@JvmName("cbhckndowqvpield")
public suspend fun errors(vararg values: Output) {
this.errors = Output.all(values.asList())
}
/**
* @param values Errors that can trigger a retry
*/
@JvmName("heagxikqgfgbofxq")
public suspend fun errors(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy