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

com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleActionFaultInjectionPolicyArgs.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.12.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.HttpRouteRuleActionFaultInjectionPolicyArgs.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 Specification of how client requests are aborted as part of fault injection before being sent to a destination.
 * Structure is documented below.
 * @property delay Specification of how client requests are delayed as part of fault injection before being sent to a destination.
 * Structure is documented below.
 */
public data class HttpRouteRuleActionFaultInjectionPolicyArgs(
    public val abort: Output? = null,
    public val delay: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionFaultInjectionPolicyArgs =
        com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionFaultInjectionPolicyArgs.builder()
            .abort(abort?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .delay(delay?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [HttpRouteRuleActionFaultInjectionPolicyArgs].
 */
@PulumiTagMarker
public class HttpRouteRuleActionFaultInjectionPolicyArgsBuilder internal constructor() {
    private var abort: Output? = null

    private var delay: Output? = null

    /**
     * @param value Specification of how client requests are aborted as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("vpooeovtoocellnp")
    public suspend fun abort(`value`: Output) {
        this.abort = value
    }

    /**
     * @param value Specification of how client requests are delayed as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("vlmvnmwkeuwfugrv")
    public suspend fun delay(`value`: Output) {
        this.delay = value
    }

    /**
     * @param value Specification of how client requests are aborted as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("tmvgnnfprndwrhqb")
    public suspend fun abort(`value`: HttpRouteRuleActionFaultInjectionPolicyAbortArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.abort = mapped
    }

    /**
     * @param argument Specification of how client requests are aborted as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("jjrjxorsncdjxwar")
    public suspend fun abort(argument: suspend HttpRouteRuleActionFaultInjectionPolicyAbortArgsBuilder.() -> Unit) {
        val toBeMapped = HttpRouteRuleActionFaultInjectionPolicyAbortArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.abort = mapped
    }

    /**
     * @param value Specification of how client requests are delayed as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("sssdiimewngqrirf")
    public suspend fun delay(`value`: HttpRouteRuleActionFaultInjectionPolicyDelayArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.delay = mapped
    }

    /**
     * @param argument Specification of how client requests are delayed as part of fault injection before being sent to a destination.
     * Structure is documented below.
     */
    @JvmName("xqhsjyqhjjacxrby")
    public suspend fun delay(argument: suspend HttpRouteRuleActionFaultInjectionPolicyDelayArgsBuilder.() -> Unit) {
        val toBeMapped = HttpRouteRuleActionFaultInjectionPolicyDelayArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.delay = mapped
    }

    internal fun build(): HttpRouteRuleActionFaultInjectionPolicyArgs =
        HttpRouteRuleActionFaultInjectionPolicyArgs(
            abort = abort,
            delay = delay,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy