com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs.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.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property abort The specification for how client requests are aborted as part of fault injection.
* Structure is documented below.
* @property delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
* Structure is documented below.
*/
public data class RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs(
public val abort: Output? = null,
public val delay: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs =
com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs.builder()
.abort(abort?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.delay(delay?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs].
*/
@PulumiTagMarker
public class RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgsBuilder internal constructor() {
private var abort:
Output? = null
private var delay:
Output? = null
/**
* @param value The specification for how client requests are aborted as part of fault injection.
* Structure is documented below.
*/
@JvmName("chiwftweltwequts")
public suspend fun abort(`value`: Output) {
this.abort = value
}
/**
* @param value The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
* Structure is documented below.
*/
@JvmName("rnbmgbkyqasdxjug")
public suspend fun delay(`value`: Output) {
this.delay = value
}
/**
* @param value The specification for how client requests are aborted as part of fault injection.
* Structure is documented below.
*/
@JvmName("ilyugydfvnkbmfro")
public suspend fun abort(`value`: RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.abort = mapped
}
/**
* @param argument The specification for how client requests are aborted as part of fault injection.
* Structure is documented below.
*/
@JvmName("bpccuciagtflfpop")
public suspend fun abort(argument: suspend RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgsBuilder.() -> Unit) {
val toBeMapped =
RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.abort = mapped
}
/**
* @param value The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
* Structure is documented below.
*/
@JvmName("fcfuoipsnakmhkbc")
public suspend fun delay(`value`: RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.delay = mapped
}
/**
* @param argument The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
* Structure is documented below.
*/
@JvmName("ivwmkqitwkukwjfj")
public suspend fun delay(argument: suspend RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgsBuilder.() -> Unit) {
val toBeMapped =
RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.delay = mapped
}
internal fun build(): RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs =
RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyArgs(
abort = abort,
delay = delay,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy