com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs.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.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs(
public val fixedDelay: Output,
public val percentage: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs =
com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs.builder()
.fixedDelay(fixedDelay.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.percentage(percentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs].
*/
@PulumiTagMarker
public class URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgsBuilder 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("yfaoulexgkmollhd")
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("plulehdcnaminthg")
public suspend fun percentage(`value`: Output) {
this.percentage = value
}
/**
* @param value Specifies the value of the fixed delay interval.
* Structure is documented below.
*/
@JvmName("pmcohubgepwvavut")
public suspend fun fixedDelay(`value`: URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs) {
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("slcnitqptoylnquo")
public suspend fun fixedDelay(argument: suspend URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder.() -> Unit) {
val toBeMapped =
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder().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("nwuexxarftlgsocq")
public suspend fun percentage(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.percentage = mapped
}
internal fun build(): URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs =
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayArgs(
fixedDelay = fixedDelay ?: throw PulumiNullFieldException("fixedDelay"),
percentage = percentage ?: throw PulumiNullFieldException("percentage"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy