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

com.pulumi.azurenative.security.kotlin.inputs.SuppressionAlertsScopeArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.SuppressionAlertsScopeArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allOf All the conditions inside need to be true in order to suppress the alert
 */
public data class SuppressionAlertsScopeArgs(
    public val allOf: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.SuppressionAlertsScopeArgs =
        com.pulumi.azurenative.security.inputs.SuppressionAlertsScopeArgs.builder()
            .allOf(
                allOf.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("rqwijsjsktibnjmi")
    public suspend fun allOf(`value`: Output>) {
        this.allOf = value
    }

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

    /**
     * @param values All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("jikevaygafahjjmm")
    public suspend fun allOf(values: List>) {
        this.allOf = Output.all(values)
    }

    /**
     * @param value All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("jkdonvyqcqlpjisf")
    public suspend fun allOf(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allOf = mapped
    }

    /**
     * @param argument All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("mtvbukdqwhudbnqg")
    public suspend fun allOf(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScopeElementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param argument All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("giprklynpmkugnrp")
    public suspend fun allOf(vararg argument: suspend ScopeElementArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ScopeElementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param argument All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("knutnvsfcefbtfwa")
    public suspend fun allOf(argument: suspend ScopeElementArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ScopeElementArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param values All the conditions inside need to be true in order to suppress the alert
     */
    @JvmName("licbngrcwmmixtgl")
    public suspend fun allOf(vararg values: ScopeElementArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allOf = mapped
    }

    internal fun build(): SuppressionAlertsScopeArgs = SuppressionAlertsScopeArgs(
        allOf = allOf ?: throw PulumiNullFieldException("allOf"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy