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

com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupReferenceSetsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkfirewall.kotlin.inputs

import com.pulumi.awsnative.networkfirewall.inputs.RuleGroupReferenceSetsArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property ipSetReferences The IP set references to use in the stateful rule group.
 */
public data class RuleGroupReferenceSetsArgs(
    public val ipSetReferences: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.RuleGroupReferenceSetsArgs =
        com.pulumi.awsnative.networkfirewall.inputs.RuleGroupReferenceSetsArgs.builder()
            .ipSetReferences(
                ipSetReferences?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value The IP set references to use in the stateful rule group.
     */
    @JvmName("krmqvhgcyhddpmnt")
    public suspend fun ipSetReferences(`value`: Output>) {
        this.ipSetReferences = value
    }

    /**
     * @param value The IP set references to use in the stateful rule group.
     */
    @JvmName("giawxjipaxpkkkes")
    public suspend fun ipSetReferences(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipSetReferences = mapped
    }

    /**
     * @param argument The IP set references to use in the stateful rule group.
     */
    @JvmName("avolghpnicmauecl")
    public suspend fun ipSetReferences(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                RuleGroupIpSetReferenceArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.ipSetReferences = mapped
    }

    /**
     * @param values The IP set references to use in the stateful rule group.
     */
    @JvmName("wacmxmuwhnfmkyfd")
    public fun ipSetReferences(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipSetReferences = mapped
    }

    internal fun build(): RuleGroupReferenceSetsArgs = RuleGroupReferenceSetsArgs(
        ipSetReferences = ipSetReferences,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy