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

com.pulumi.aws.networkfirewall.kotlin.inputs.FirewallPolicyFirewallPolicyPolicyVariablesArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.networkfirewall.kotlin.inputs

import com.pulumi.aws.networkfirewall.inputs.FirewallPolicyFirewallPolicyPolicyVariablesArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property ruleVariables
 */
public data class FirewallPolicyFirewallPolicyPolicyVariablesArgs(
    public val ruleVariables: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.networkfirewall.inputs.FirewallPolicyFirewallPolicyPolicyVariablesArgs =
        com.pulumi.aws.networkfirewall.inputs.FirewallPolicyFirewallPolicyPolicyVariablesArgs.builder()
            .ruleVariables(
                ruleVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value
     */
    @JvmName("vniykfssnvdopwbn")
    public suspend fun ruleVariables(`value`: Output>) {
        this.ruleVariables = value
    }

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

    /**
     * @param values
     */
    @JvmName("tcowdisklvpimgkq")
    public suspend fun ruleVariables(values: List>) {
        this.ruleVariables = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("nqvqmkfbvlqufqth")
    public suspend fun ruleVariables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleVariables = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wwujoanmownumkco")
    public suspend fun ruleVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleVariables = mapped
    }

    /**
     * @param argument
     */
    @JvmName("epbnwfqnlrahghcl")
    public suspend fun ruleVariables(vararg argument: suspend FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleVariables = mapped
    }

    /**
     * @param argument
     */
    @JvmName("gmydnvyanihwjeyp")
    public suspend fun ruleVariables(argument: suspend FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ruleVariables = mapped
    }

    /**
     * @param values
     */
    @JvmName("ewqubphuhvlucjse")
    public suspend fun ruleVariables(vararg values: FirewallPolicyFirewallPolicyPolicyVariablesRuleVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleVariables = mapped
    }

    internal fun build(): FirewallPolicyFirewallPolicyPolicyVariablesArgs =
        FirewallPolicyFirewallPolicyPolicyVariablesArgs(
            ruleVariables = ruleVariables,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy