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

com.pulumi.gcp.networkservices.kotlin.inputs.GrpcRouteRuleActionRetryPolicyArgs.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.10.0.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.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>) {
        this.retryConditions = Output.all(values)
    }

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

    /**
     * @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("sajtedyeuumvqmmr")
    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.
     * Each value may be one of: `connect-failure`, `refused-stream`, `cancelled`, `deadline-exceeded`, `resource-exhausted`, `unavailable`.
     */
    @JvmName("tnwikbukepqfieye")
    public suspend fun retryConditions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retryConditions = mapped
    }

    internal fun build(): GrpcRouteRuleActionRetryPolicyArgs = GrpcRouteRuleActionRetryPolicyArgs(
        numRetries = numRetries,
        retryConditions = retryConditions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy