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

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

@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.URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs.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 URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs(
    public val httpStatus: Output? = null,
    public val percentage: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs =
        com.pulumi.gcp.compute.inputs.URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs.builder()
            .httpStatus(httpStatus?.applyValue({ args0 -> args0 }))
            .percentage(percentage?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs].
 */
@PulumiTagMarker
public class URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgsBuilder 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("nvrsxcprvsudkphv")
    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("srpmoyqbxdhiuaav")
    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("utsekhpmdbtktpim")
    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("dtrmtwojpfysohdo")
    public suspend fun percentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentage = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy