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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.builder
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 infoTypes List of infoTypes this rule set is applied to.
 * Structure is documented below.
 * @property rules Set of rules to be applied to infoTypes. The rules are applied in order.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobInspectConfigRuleSetArgs(
    public val infoTypes: Output>? = null,
    public val rules: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetArgs.builder()
            .infoTypes(
                infoTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .rules(
                rules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var rules: Output>? =
        null

    /**
     * @param value List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("mdugubwtclffbtkb")
    public suspend fun infoTypes(`value`: Output>) {
        this.infoTypes = value
    }

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

    /**
     * @param values List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("fskvxfjeujmpilht")
    public suspend fun infoTypes(values: List>) {
        this.infoTypes = Output.all(values)
    }

    /**
     * @param value Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("erhmlyyilmvmkyxi")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("sbouvqxgbiiylbuu")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("sgimukcrctibissn")
    public suspend fun infoTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infoTypes = mapped
    }

    /**
     * @param argument List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("tsyerogkkgkagquv")
    public suspend fun infoTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param argument List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("cqhtfurjcgcdmyif")
    public suspend fun infoTypes(vararg argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param argument List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("gjpgkxsmqsfiploq")
    public suspend fun infoTypes(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param values List of infoTypes this rule set is applied to.
     * Structure is documented below.
     */
    @JvmName("tpoqlxlavqqloihl")
    public suspend fun infoTypes(vararg values: PreventionJobTriggerInspectJobInspectConfigRuleSetInfoTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.infoTypes = mapped
    }

    /**
     * @param value Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("bopcdicovksbkcpa")
    public suspend fun rules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("cqanivqnqafkveod")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("byablamdyfxgsjyr")
    public suspend fun rules(vararg argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("idwvbiahdaidayyn")
    public suspend fun rules(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values Set of rules to be applied to infoTypes. The rules are applied in order.
     * Structure is documented below.
     */
    @JvmName("pbqitpxhlojqjxij")
    public suspend fun rules(vararg values: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobInspectConfigRuleSetArgs =
        PreventionJobTriggerInspectJobInspectConfigRuleSetArgs(
            infoTypes = infoTypes,
            rules = rules ?: throw PulumiNullFieldException("rules"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy