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