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

com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleActionFaultInjectionPolicyDelayArgs.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.HttpRouteRuleActionFaultInjectionPolicyDelayArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property fixedDelay Specify a fixed delay before forwarding the request.
 * @property percentage The percentage of traffic on which delay will be injected.
 */
public data class HttpRouteRuleActionFaultInjectionPolicyDelayArgs(
    public val fixedDelay: Output? = null,
    public val percentage: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionFaultInjectionPolicyDelayArgs =
        com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionFaultInjectionPolicyDelayArgs.builder()
            .fixedDelay(fixedDelay?.applyValue({ args0 -> args0 }))
            .percentage(percentage?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HttpRouteRuleActionFaultInjectionPolicyDelayArgs].
 */
@PulumiTagMarker
public class HttpRouteRuleActionFaultInjectionPolicyDelayArgsBuilder internal constructor() {
    private var fixedDelay: Output? = null

    private var percentage: Output? = null

    /**
     * @param value Specify a fixed delay before forwarding the request.
     */
    @JvmName("fpgmsnpslaambhem")
    public suspend fun fixedDelay(`value`: Output) {
        this.fixedDelay = value
    }

    /**
     * @param value The percentage of traffic on which delay will be injected.
     */
    @JvmName("nemmkjdguoskqvib")
    public suspend fun percentage(`value`: Output) {
        this.percentage = value
    }

    /**
     * @param value Specify a fixed delay before forwarding the request.
     */
    @JvmName("ndotarotynndycrk")
    public suspend fun fixedDelay(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixedDelay = mapped
    }

    /**
     * @param value The percentage of traffic on which delay will be injected.
     */
    @JvmName("cudcrkghieoaiany")
    public suspend fun percentage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentage = mapped
    }

    internal fun build(): HttpRouteRuleActionFaultInjectionPolicyDelayArgs =
        HttpRouteRuleActionFaultInjectionPolicyDelayArgs(
            fixedDelay = fixedDelay,
            percentage = percentage,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy