
com.pulumi.azurenative.apimanagement.kotlin.outputs.CircuitBreakerRuleResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* Rule configuration to trip the backend.
* @property acceptRetryAfter flag to accept Retry-After header from the backend.
* @property failureCondition The conditions for tripping the circuit breaker.
* @property name The rule name.
* @property tripDuration The duration for which the circuit will be tripped.
*/
public data class CircuitBreakerRuleResponse(
public val acceptRetryAfter: Boolean? = null,
public val failureCondition: CircuitBreakerFailureConditionResponse? = null,
public val name: String? = null,
public val tripDuration: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.apimanagement.outputs.CircuitBreakerRuleResponse): CircuitBreakerRuleResponse = CircuitBreakerRuleResponse(
acceptRetryAfter = javaType.acceptRetryAfter().map({ args0 -> args0 }).orElse(null),
failureCondition = javaType.failureCondition().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.apimanagement.kotlin.outputs.CircuitBreakerFailureConditionResponse.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
tripDuration = javaType.tripDuration().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy