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

com.pulumi.googlenative.compute.beta.kotlin.inputs.HttpFaultDelayArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.inputs.HttpFaultDelayArgs.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

/**
 * Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.
 * @property fixedDelay Specifies the value of the fixed delay interval.
 * @property percentage The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
 */
public data class HttpFaultDelayArgs(
    public val fixedDelay: Output? = null,
    public val percentage: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.HttpFaultDelayArgs =
        com.pulumi.googlenative.compute.beta.inputs.HttpFaultDelayArgs.builder()
            .fixedDelay(fixedDelay?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .percentage(percentage?.applyValue({ args0 -> args0 })).build()
}

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

    private var percentage: Output? = null

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

    /**
     * @param value The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
     */
    @JvmName("cpvqmervjsxhyppo")
    public suspend fun percentage(`value`: Output) {
        this.percentage = value
    }

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

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

    /**
     * @param value The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
     */
    @JvmName("bbnrdjoeriyijsmk")
    public suspend fun percentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentage = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy