com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.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.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property httpStatus The HTTP status code used to abort the request.
* The value must be between 200 and 599 inclusive.
* @property percentage The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
* The value must be between 0.0 and 100.0 inclusive.
*/
public data class URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs(
public val httpStatus: Output? = null,
public val percentage: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs =
com.pulumi.gcp.compute.inputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.builder()
.httpStatus(httpStatus?.applyValue({ args0 -> args0 }))
.percentage(percentage?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs].
*/
@PulumiTagMarker
public class URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgsBuilder internal constructor() {
private var httpStatus: Output? = null
private var percentage: Output? = null
/**
* @param value The HTTP status code used to abort the request.
* The value must be between 200 and 599 inclusive.
*/
@JvmName("bettiqcagrcvqoqx")
public suspend fun httpStatus(`value`: Output) {
this.httpStatus = value
}
/**
* @param value The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
* The value must be between 0.0 and 100.0 inclusive.
*/
@JvmName("qubiwswfcpvthldx")
public suspend fun percentage(`value`: Output) {
this.percentage = value
}
/**
* @param value The HTTP status code used to abort the request.
* The value must be between 200 and 599 inclusive.
*/
@JvmName("aqrxikfpipyouvyu")
public suspend fun httpStatus(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpStatus = mapped
}
/**
* @param value The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
* The value must be between 0.0 and 100.0 inclusive.
*/
@JvmName("wipduujlbyibwnav")
public suspend fun percentage(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.percentage = mapped
}
internal fun build(): URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs =
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs(
httpStatus = httpStatus,
percentage = percentage,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy