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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionInspectTemplateInspectConfigRuleSetArgs.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.10.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.PreventionInspectTemplateInspectConfigRuleSetArgs.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 PreventionInspectTemplateInspectConfigRuleSetArgs(
    public val infoTypes: Output>,
    public val rules: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetArgs.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 [PreventionInspectTemplateInspectConfigRuleSetArgs].
 */
@PulumiTagMarker
public class PreventionInspectTemplateInspectConfigRuleSetArgsBuilder 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("xlkgoyyttbjmranl")
    public suspend fun infoTypes(`value`: Output>) {
        this.infoTypes = value
    }

    @JvmName("nhsypftclnspptxu")
    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("qsodovchfpslvfvc")
    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("esocacwkpelwmoem")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

    @JvmName("ncnnbdcewofsusuk")
    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("sxbnstovpootguoc")
    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("ejjovtcxmaunplam")
    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("uhcgavqcwilpawvs")
    public suspend fun infoTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgsBuilder().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("yvxmoenygralubww")
    public suspend fun infoTypes(vararg argument: suspend PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgsBuilder().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("uqrbtqikpidosmmx")
    public suspend fun infoTypes(argument: suspend PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgsBuilder().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("qqmmjwetrdmgyeuv")
    public suspend fun infoTypes(vararg values: PreventionInspectTemplateInspectConfigRuleSetInfoTypeArgs) {
        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("wbyhlvdxynbctmvn")
    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("smmetwgrbpdphggq")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder().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("ojpmclxwjntufqio")
    public suspend fun rules(vararg argument: suspend PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder().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("shhobvxshegkicay")
    public suspend fun rules(argument: suspend PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder().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("lagfruwldtsuulwy")
    public suspend fun rules(vararg values: PreventionInspectTemplateInspectConfigRuleSetRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy