All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.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 RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs(
    public val httpStatus: Output? = null,
    public val percentage: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs =
        com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs.builder()
            .httpStatus(httpStatus?.applyValue({ args0 -> args0 }))
            .percentage(percentage?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs].
 */
@PulumiTagMarker
public class RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgsBuilder
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("clqcdnlcugyjtfcl")
    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("wosrhqndxhkktyqh")
    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("eddebwbsbaymihxc")
    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("qyxmnnqllybebfvm")
    public suspend fun percentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentage = mapped
    }

    internal fun build(): RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs =
        RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbortArgs(
            httpStatus = httpStatus,
            percentage = percentage,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy