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

com.pulumi.cloudflare.kotlin.inputs.RateLimitMatchArgs.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: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RateLimitMatchArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property request Matches HTTP requests (from the client to Cloudflare).
 * @property response Matches HTTP responses before they are returned to the client from Cloudflare. If this is defined, then the entire counting of traffic occurs at this stage.
 */
public data class RateLimitMatchArgs(
    public val request: Output? = null,
    public val response: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RateLimitMatchArgs =
        com.pulumi.cloudflare.inputs.RateLimitMatchArgs.builder()
            .request(request?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .response(response?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RateLimitMatchArgs].
 */
@PulumiTagMarker
public class RateLimitMatchArgsBuilder internal constructor() {
    private var request: Output? = null

    private var response: Output? = null

    /**
     * @param value Matches HTTP requests (from the client to Cloudflare).
     */
    @JvmName("pnsbhqujxikkfpvn")
    public suspend fun request(`value`: Output) {
        this.request = value
    }

    /**
     * @param value Matches HTTP responses before they are returned to the client from Cloudflare. If this is defined, then the entire counting of traffic occurs at this stage.
     */
    @JvmName("gkijeleegpirmqgc")
    public suspend fun response(`value`: Output) {
        this.response = value
    }

    /**
     * @param value Matches HTTP requests (from the client to Cloudflare).
     */
    @JvmName("jmmtssfcmlpysuwb")
    public suspend fun request(`value`: RateLimitMatchRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.request = mapped
    }

    /**
     * @param argument Matches HTTP requests (from the client to Cloudflare).
     */
    @JvmName("pythpxacnkgofndh")
    public suspend fun request(argument: suspend RateLimitMatchRequestArgsBuilder.() -> Unit) {
        val toBeMapped = RateLimitMatchRequestArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.request = mapped
    }

    /**
     * @param value Matches HTTP responses before they are returned to the client from Cloudflare. If this is defined, then the entire counting of traffic occurs at this stage.
     */
    @JvmName("xxrudfueqlkosstb")
    public suspend fun response(`value`: RateLimitMatchResponseArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.response = mapped
    }

    /**
     * @param argument Matches HTTP responses before they are returned to the client from Cloudflare. If this is defined, then the entire counting of traffic occurs at this stage.
     */
    @JvmName("mlrrxoiedyyjahtx")
    public suspend fun response(argument: suspend RateLimitMatchResponseArgsBuilder.() -> Unit) {
        val toBeMapped = RateLimitMatchResponseArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.response = mapped
    }

    internal fun build(): RateLimitMatchArgs = RateLimitMatchArgs(
        request = request,
        response = response,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy