
com.pulumi.azurenative.apimanagement.kotlin.inputs.CircuitBreakerFailureConditionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin.inputs
import com.pulumi.azurenative.apimanagement.inputs.CircuitBreakerFailureConditionArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The trip conditions of the circuit breaker
* @property count The threshold for opening the circuit.
* @property errorReasons The error reasons which are considered as failure.
* @property interval The interval during which the failures are counted.
* @property percentage The threshold for opening the circuit.
* @property statusCodeRanges The status code ranges which are considered as failure.
*/
public data class CircuitBreakerFailureConditionArgs(
public val count: Output? = null,
public val errorReasons: Output>? = null,
public val interval: Output? = null,
public val percentage: Output? = null,
public val statusCodeRanges: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.inputs.CircuitBreakerFailureConditionArgs =
com.pulumi.azurenative.apimanagement.inputs.CircuitBreakerFailureConditionArgs.builder()
.count(count?.applyValue({ args0 -> args0 }))
.errorReasons(errorReasons?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.interval(interval?.applyValue({ args0 -> args0 }))
.percentage(percentage?.applyValue({ args0 -> args0 }))
.statusCodeRanges(
statusCodeRanges?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [CircuitBreakerFailureConditionArgs].
*/
@PulumiTagMarker
public class CircuitBreakerFailureConditionArgsBuilder internal constructor() {
private var count: Output? = null
private var errorReasons: Output>? = null
private var interval: Output? = null
private var percentage: Output? = null
private var statusCodeRanges: Output>? = null
/**
* @param value The threshold for opening the circuit.
*/
@JvmName("ymhtxotggddldhwv")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value The error reasons which are considered as failure.
*/
@JvmName("wxqllohcnwcdbfbv")
public suspend fun errorReasons(`value`: Output>) {
this.errorReasons = value
}
@JvmName("kambitxowytcelsu")
public suspend fun errorReasons(vararg values: Output) {
this.errorReasons = Output.all(values.asList())
}
/**
* @param values The error reasons which are considered as failure.
*/
@JvmName("qvoypdmqjelbcdoh")
public suspend fun errorReasons(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy