com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs.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.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs(
public val httpStatus: Output,
public val percentage: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs =
com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs.builder()
.httpStatus(httpStatus.applyValue({ args0 -> args0 }))
.percentage(percentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs].
*/
@PulumiTagMarker
public class URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgsBuilder 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("fgisesmcmrpmylwd")
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("snubuutonkbabmla")
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("virhmqxgapedlqcc")
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("pkthurtmnjmdepwk")
public suspend fun percentage(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.percentage = mapped
}
internal fun build(): URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs =
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortArgs(
httpStatus = httpStatus ?: throw PulumiNullFieldException("httpStatus"),
percentage = percentage ?: throw PulumiNullFieldException("percentage"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy