com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs.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.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs.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 URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs(
public val fixedDelay: Output? = null,
public val percentage: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs =
com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs.builder()
.fixedDelay(fixedDelay?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.percentage(percentage?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs].
*/
@PulumiTagMarker
public class URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgsBuilder 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("gchajqphyrpkmbpj")
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("sjxlaioobscnpcjl")
public suspend fun percentage(`value`: Output) {
this.percentage = value
}
/**
* @param value Specifies the value of the fixed delay interval.
* Structure is documented below.
*/
@JvmName("yvujyulajajtqdjj")
public suspend fun fixedDelay(`value`: URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs?) {
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("rrhgxfmubsteimtv")
public suspend fun fixedDelay(argument: suspend URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder.() -> Unit) {
val toBeMapped =
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder().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("hkrryphskxsjsukt")
public suspend fun percentage(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.percentage = mapped
}
internal fun build(): URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs =
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayArgs(
fixedDelay = fixedDelay,
percentage = percentage,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy