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

com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property fixedDelay Specifies the value of the fixed delay interval.
 * Structure is documented below.
 * @property percentage The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection.
 * The value must be between 0.0 and 100.0 inclusive.
 */
public data class RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs(
    public val fixedDelay: Output? = null,
    public val percentage: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs =
        com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayArgs.builder()
            .fixedDelay(fixedDelay?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .percentage(percentage?.applyValue({ args0 -> args0 })).build()
}

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

    private var percentage: Output? = null

    /**
     * @param value Specifies the value of the fixed delay interval.
     * Structure is documented below.
     */
    @JvmName("daaxhvbcgklvqjaj")
    public suspend fun fixedDelay(`value`: Output) {
        this.fixedDelay = value
    }

    /**
     * @param value The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection.
     * The value must be between 0.0 and 100.0 inclusive.
     */
    @JvmName("cjvbfqwcvdkbaqcd")
    public suspend fun percentage(`value`: Output) {
        this.percentage = value
    }

    /**
     * @param value Specifies the value of the fixed delay interval.
     * Structure is documented below.
     */
    @JvmName("sjbovrququowgkpw")
    public suspend fun fixedDelay(`value`: RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixedDelay = mapped
    }

    /**
     * @param argument Specifies the value of the fixed delay interval.
     * Structure is documented below.
     */
    @JvmName("srsvysfihutuhfer")
    public suspend fun fixedDelay(argument: suspend RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder.() -> Unit) {
        val toBeMapped =
            RegionUrlMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.fixedDelay = mapped
    }

    /**
     * @param value The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection.
     * The value must be between 0.0 and 100.0 inclusive.
     */
    @JvmName("lkwhokgfbsdvoyvq")
    public suspend fun percentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentage = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy