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

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

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property cacheByDeviceType Cache by device type.
 * @property cacheDeceptionArmor Cache deception armor.
 * @property customKey Custom key parameters for the request.
 * @property ignoreQueryStringsOrder Ignore query strings order.
 */
public data class RulesetRuleActionParametersCacheKeyArgs(
    public val cacheByDeviceType: Output? = null,
    public val cacheDeceptionArmor: Output? = null,
    public val customKey: Output? = null,
    public val ignoreQueryStringsOrder: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyArgs =
        com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheKeyArgs.builder()
            .cacheByDeviceType(cacheByDeviceType?.applyValue({ args0 -> args0 }))
            .cacheDeceptionArmor(cacheDeceptionArmor?.applyValue({ args0 -> args0 }))
            .customKey(customKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ignoreQueryStringsOrder(ignoreQueryStringsOrder?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RulesetRuleActionParametersCacheKeyArgs].
 */
@PulumiTagMarker
public class RulesetRuleActionParametersCacheKeyArgsBuilder internal constructor() {
    private var cacheByDeviceType: Output? = null

    private var cacheDeceptionArmor: Output? = null

    private var customKey: Output? = null

    private var ignoreQueryStringsOrder: Output? = null

    /**
     * @param value Cache by device type.
     */
    @JvmName("lgicstdyhcywhkyx")
    public suspend fun cacheByDeviceType(`value`: Output) {
        this.cacheByDeviceType = value
    }

    /**
     * @param value Cache deception armor.
     */
    @JvmName("uiubuldluglnuehc")
    public suspend fun cacheDeceptionArmor(`value`: Output) {
        this.cacheDeceptionArmor = value
    }

    /**
     * @param value Custom key parameters for the request.
     */
    @JvmName("hhdsgxwackxfphuh")
    public suspend fun customKey(`value`: Output) {
        this.customKey = value
    }

    /**
     * @param value Ignore query strings order.
     */
    @JvmName("bwlnokcncdughxxo")
    public suspend fun ignoreQueryStringsOrder(`value`: Output) {
        this.ignoreQueryStringsOrder = value
    }

    /**
     * @param value Cache by device type.
     */
    @JvmName("gitwxbpadkhsycud")
    public suspend fun cacheByDeviceType(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheByDeviceType = mapped
    }

    /**
     * @param value Cache deception armor.
     */
    @JvmName("fhujlqlqcdwwcdbb")
    public suspend fun cacheDeceptionArmor(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheDeceptionArmor = mapped
    }

    /**
     * @param value Custom key parameters for the request.
     */
    @JvmName("pfncrqglvkxcbnbq")
    public suspend fun customKey(`value`: RulesetRuleActionParametersCacheKeyCustomKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customKey = mapped
    }

    /**
     * @param argument Custom key parameters for the request.
     */
    @JvmName("graosupndibbhfnn")
    public suspend fun customKey(argument: suspend RulesetRuleActionParametersCacheKeyCustomKeyArgsBuilder.() -> Unit) {
        val toBeMapped = RulesetRuleActionParametersCacheKeyCustomKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customKey = mapped
    }

    /**
     * @param value Ignore query strings order.
     */
    @JvmName("dvcswmiwgoerkbkg")
    public suspend fun ignoreQueryStringsOrder(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreQueryStringsOrder = mapped
    }

    internal fun build(): RulesetRuleActionParametersCacheKeyArgs =
        RulesetRuleActionParametersCacheKeyArgs(
            cacheByDeviceType = cacheByDeviceType,
            cacheDeceptionArmor = cacheDeceptionArmor,
            customKey = customKey,
            ignoreQueryStringsOrder = ignoreQueryStringsOrder,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy