com.pulumi.gcp.networkservices.kotlin.inputs.GrpcRouteRuleActionRetryPolicyArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionRetryPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property numRetries Specifies the allowed number of retries.
* - - -
* @property retryConditions Specifies one or more conditions when this retry policy applies.
* Each value may be one of: `connect-failure`, `refused-stream`, `cancelled`, `deadline-exceeded`, `resource-exhausted`, `unavailable`.
*/
public data class GrpcRouteRuleActionRetryPolicyArgs(
public val numRetries: Output? = null,
public val retryConditions: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionRetryPolicyArgs =
com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionRetryPolicyArgs.builder()
.numRetries(numRetries?.applyValue({ args0 -> args0 }))
.retryConditions(retryConditions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [GrpcRouteRuleActionRetryPolicyArgs].
*/
@PulumiTagMarker
public class GrpcRouteRuleActionRetryPolicyArgsBuilder internal constructor() {
private var numRetries: Output? = null
private var retryConditions: Output>? = null
/**
* @param value Specifies the allowed number of retries.
* - - -
*/
@JvmName("dsnvfiuoepopvwdv")
public suspend fun numRetries(`value`: Output) {
this.numRetries = value
}
/**
* @param value Specifies one or more conditions when this retry policy applies.
* Each value may be one of: `connect-failure`, `refused-stream`, `cancelled`, `deadline-exceeded`, `resource-exhausted`, `unavailable`.
*/
@JvmName("gqvxydbbprcsvrqg")
public suspend fun retryConditions(`value`: Output>) {
this.retryConditions = value
}
@JvmName("ampgqolwhqkulluq")
public suspend fun retryConditions(vararg values: Output) {
this.retryConditions = Output.all(values.asList())
}
/**
* @param values Specifies one or more conditions when this retry policy applies.
* Each value may be one of: `connect-failure`, `refused-stream`, `cancelled`, `deadline-exceeded`, `resource-exhausted`, `unavailable`.
*/
@JvmName("gnsejhglxverawar")
public suspend fun retryConditions(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy