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

com.pulumi.cloudflare.kotlin.inputs.RateLimitMatchRequestArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property methods HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
 * @property schemes HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
 * @property urlPattern The URL pattern to match comprised of the host and path, i.e. example.org/path. Wildcard are expanded to match applicable traffic, query strings are not matched. Use _ for all traffic to your zone.
 */
public data class RateLimitMatchRequestArgs(
    public val methods: Output>? = null,
    public val schemes: Output>? = null,
    public val urlPattern: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs =
        com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs.builder()
            .methods(methods?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .schemes(schemes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .urlPattern(urlPattern?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RateLimitMatchRequestArgs].
 */
@PulumiTagMarker
public class RateLimitMatchRequestArgsBuilder internal constructor() {
    private var methods: Output>? = null

    private var schemes: Output>? = null

    private var urlPattern: Output? = null

    /**
     * @param value HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
     */
    @JvmName("ktycopbtjibjkkij")
    public suspend fun methods(`value`: Output>) {
        this.methods = value
    }

    @JvmName("snhtuagtsaswoppi")
    public suspend fun methods(vararg values: Output) {
        this.methods = Output.all(values.asList())
    }

    /**
     * @param values HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
     */
    @JvmName("vootewduuwrjocpi")
    public suspend fun methods(values: List>) {
        this.methods = Output.all(values)
    }

    /**
     * @param value HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
     */
    @JvmName("tpfmsgnmuurythvm")
    public suspend fun schemes(`value`: Output>) {
        this.schemes = value
    }

    @JvmName("eplxgaconeadibio")
    public suspend fun schemes(vararg values: Output) {
        this.schemes = Output.all(values.asList())
    }

    /**
     * @param values HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
     */
    @JvmName("hjelstdvbgsswudo")
    public suspend fun schemes(values: List>) {
        this.schemes = Output.all(values)
    }

    /**
     * @param value The URL pattern to match comprised of the host and path, i.e. example.org/path. Wildcard are expanded to match applicable traffic, query strings are not matched. Use _ for all traffic to your zone.
     */
    @JvmName("gnbuxbijpxefhsrp")
    public suspend fun urlPattern(`value`: Output) {
        this.urlPattern = value
    }

    /**
     * @param value HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
     */
    @JvmName("fsejpojfbvtgffiw")
    public suspend fun methods(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.methods = mapped
    }

    /**
     * @param values HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
     */
    @JvmName("jjmuocauoounsuel")
    public suspend fun methods(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.methods = mapped
    }

    /**
     * @param value HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
     */
    @JvmName("hkslhedlisrteqhn")
    public suspend fun schemes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemes = mapped
    }

    /**
     * @param values HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
     */
    @JvmName("iqwglyqmdutaojit")
    public suspend fun schemes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schemes = mapped
    }

    /**
     * @param value The URL pattern to match comprised of the host and path, i.e. example.org/path. Wildcard are expanded to match applicable traffic, query strings are not matched. Use _ for all traffic to your zone.
     */
    @JvmName("ldbxfhdemcspcgnk")
    public suspend fun urlPattern(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlPattern = mapped
    }

    internal fun build(): RateLimitMatchRequestArgs = RateLimitMatchRequestArgs(
        methods = methods,
        schemes = schemes,
        urlPattern = urlPattern,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy