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

com.pulumi.azure.frontdoor.kotlin.inputs.FirewallPolicyManagedRuleArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.frontdoor.kotlin.inputs

import com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property exclusions One or more `exclusion` blocks as defined below.
 * @property overrides One or more `override` blocks as defined below.
 * @property type The name of the managed rule to use with this resource.
 * @property version The version on the managed rule to use with this resource.
 */
public data class FirewallPolicyManagedRuleArgs(
    public val exclusions: Output>? = null,
    public val overrides: Output>? = null,
    public val type: Output,
    public val version: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleArgs =
        com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleArgs.builder()
            .exclusions(
                exclusions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .overrides(
                overrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0 }))
            .version(version.applyValue({ args0 -> args0 })).build()
}

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

    private var overrides: Output>? = null

    private var type: Output? = null

    private var version: Output? = null

    /**
     * @param value One or more `exclusion` blocks as defined below.
     */
    @JvmName("ahxownhifwmlipce")
    public suspend fun exclusions(`value`: Output>) {
        this.exclusions = value
    }

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

    /**
     * @param values One or more `exclusion` blocks as defined below.
     */
    @JvmName("evajgsoykejqoxay")
    public suspend fun exclusions(values: List>) {
        this.exclusions = Output.all(values)
    }

    /**
     * @param value One or more `override` blocks as defined below.
     */
    @JvmName("jmkbbawgpsxerran")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

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

    /**
     * @param values One or more `override` blocks as defined below.
     */
    @JvmName("yugxnyuqexjirnmn")
    public suspend fun overrides(values: List>) {
        this.overrides = Output.all(values)
    }

    /**
     * @param value The name of the managed rule to use with this resource.
     */
    @JvmName("wwdpicqnrifiaajs")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The version on the managed rule to use with this resource.
     */
    @JvmName("yoargoxpvgkevlnx")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value One or more `exclusion` blocks as defined below.
     */
    @JvmName("pexsfckiaxbonlki")
    public suspend fun exclusions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("cnhuddyxjbvumfjg")
    public suspend
    fun exclusions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleExclusionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("djydcnpynoaenwkv")
    public suspend fun exclusions(
        vararg
        argument: suspend FirewallPolicyManagedRuleExclusionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleExclusionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("hhdcckbxqhuovqet")
    public suspend
    fun exclusions(argument: suspend FirewallPolicyManagedRuleExclusionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FirewallPolicyManagedRuleExclusionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param values One or more `exclusion` blocks as defined below.
     */
    @JvmName("cwwvbeyglmawkbhy")
    public suspend fun exclusions(vararg values: FirewallPolicyManagedRuleExclusionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param value One or more `override` blocks as defined below.
     */
    @JvmName("njmrqwmqdfjomjmc")
    public suspend fun overrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument One or more `override` blocks as defined below.
     */
    @JvmName("buuoqnoftmwdcutj")
    public suspend
    fun overrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument One or more `override` blocks as defined below.
     */
    @JvmName("ewwhcmdynhcmilam")
    public suspend fun overrides(
        vararg
        argument: suspend FirewallPolicyManagedRuleOverrideArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument One or more `override` blocks as defined below.
     */
    @JvmName("simasrtkpdgwcudd")
    public suspend
    fun overrides(argument: suspend FirewallPolicyManagedRuleOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FirewallPolicyManagedRuleOverrideArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param values One or more `override` blocks as defined below.
     */
    @JvmName("qmafeecjaewikamn")
    public suspend fun overrides(vararg values: FirewallPolicyManagedRuleOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param value The name of the managed rule to use with this resource.
     */
    @JvmName("jeyfkbdhjntuskbw")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The version on the managed rule to use with this resource.
     */
    @JvmName("hyuvavdnlqimayjd")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): FirewallPolicyManagedRuleArgs = FirewallPolicyManagedRuleArgs(
        exclusions = exclusions,
        overrides = overrides,
        type = type ?: throw PulumiNullFieldException("type"),
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy