All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleActionRetryPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.13.1.0
Show newest version
@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.HttpRouteRuleActionRetryPolicyArgs.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 perTryTimeout Specifies a non-zero timeout per retry attempt. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
 * @property retryConditions Specifies one or more conditions when this retry policy applies.
 */
public data class HttpRouteRuleActionRetryPolicyArgs(
    public val numRetries: Output? = null,
    public val perTryTimeout: Output? = null,
    public val retryConditions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionRetryPolicyArgs =
        com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionRetryPolicyArgs.builder()
            .numRetries(numRetries?.applyValue({ args0 -> args0 }))
            .perTryTimeout(perTryTimeout?.applyValue({ args0 -> args0 }))
            .retryConditions(retryConditions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [HttpRouteRuleActionRetryPolicyArgs].
 */
@PulumiTagMarker
public class HttpRouteRuleActionRetryPolicyArgsBuilder internal constructor() {
    private var numRetries: Output? = null

    private var perTryTimeout: Output? = null

    private var retryConditions: Output>? = null

    /**
     * @param value Specifies the allowed number of retries.
     */
    @JvmName("ccvileuwuqnkpfhh")
    public suspend fun numRetries(`value`: Output) {
        this.numRetries = value
    }

    /**
     * @param value Specifies a non-zero timeout per retry attempt. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
     */
    @JvmName("cnynsyuhtpsdgncw")
    public suspend fun perTryTimeout(`value`: Output) {
        this.perTryTimeout = value
    }

    /**
     * @param value Specifies one or more conditions when this retry policy applies.
     */
    @JvmName("uonvarcsgelchsiq")
    public suspend fun retryConditions(`value`: Output>) {
        this.retryConditions = value
    }

    @JvmName("rwnsrytlxqqftmvr")
    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.
     */
    @JvmName("hrvwbrreebfsmgeq")
    public suspend fun retryConditions(values: List>) {
        this.retryConditions = Output.all(values)
    }

    /**
     * @param value Specifies the allowed number of retries.
     */
    @JvmName("whvqugjjnjfwxssl")
    public suspend fun numRetries(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numRetries = mapped
    }

    /**
     * @param value Specifies a non-zero timeout per retry attempt. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
     */
    @JvmName("ljluvwarxhgfryfc")
    public suspend fun perTryTimeout(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.perTryTimeout = mapped
    }

    /**
     * @param value Specifies one or more conditions when this retry policy applies.
     */
    @JvmName("frqvptxkaambqwad")
    public suspend fun retryConditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryConditions = mapped
    }

    /**
     * @param values Specifies one or more conditions when this retry policy applies.
     */
    @JvmName("fjsewsapvchgolfq")
    public suspend fun retryConditions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retryConditions = mapped
    }

    internal fun build(): HttpRouteRuleActionRetryPolicyArgs = HttpRouteRuleActionRetryPolicyArgs(
        numRetries = numRetries,
        perTryTimeout = perTryTimeout,
        retryConditions = retryConditions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy