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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs.kt Maven / Gradle / Ivy

@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.PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property exclusionRule The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.
 * Structure is documented below.
 * @property hotwordRule Hotword-based detection rule.
 * Structure is documented below.
 */
public data class PreventionInspectTemplateInspectConfigRuleSetRuleArgs(
    public val exclusionRule: Output? = null,
    public val hotwordRule: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleArgs.builder()
            .exclusionRule(exclusionRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hotwordRule(hotwordRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PreventionInspectTemplateInspectConfigRuleSetRuleArgs].
 */
@PulumiTagMarker
public class PreventionInspectTemplateInspectConfigRuleSetRuleArgsBuilder internal constructor() {
    private var exclusionRule:
        Output? = null

    private var hotwordRule: Output? =
        null

    /**
     * @param value The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.
     * Structure is documented below.
     */
    @JvmName("yqcsltnieprjthdq")
    public suspend fun exclusionRule(`value`: Output) {
        this.exclusionRule = value
    }

    /**
     * @param value Hotword-based detection rule.
     * Structure is documented below.
     */
    @JvmName("ftxtpdbrwaxnuudh")
    public suspend fun hotwordRule(`value`: Output) {
        this.hotwordRule = value
    }

    /**
     * @param value The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.
     * Structure is documented below.
     */
    @JvmName("seqxsrvhyhtmxqmy")
    public suspend fun exclusionRule(`value`: PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusionRule = mapped
    }

    /**
     * @param argument The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.
     * Structure is documented below.
     */
    @JvmName("tyhnlyqtpkymuwba")
    public suspend fun exclusionRule(argument: suspend PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.exclusionRule = mapped
    }

    /**
     * @param value Hotword-based detection rule.
     * Structure is documented below.
     */
    @JvmName("iqrmneuacdansohw")
    public suspend fun hotwordRule(`value`: PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hotwordRule = mapped
    }

    /**
     * @param argument Hotword-based detection rule.
     * Structure is documented below.
     */
    @JvmName("onsjyorbremjdifn")
    public suspend fun hotwordRule(argument: suspend PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.hotwordRule = mapped
    }

    internal fun build(): PreventionInspectTemplateInspectConfigRuleSetRuleArgs =
        PreventionInspectTemplateInspectConfigRuleSetRuleArgs(
            exclusionRule = exclusionRule,
            hotwordRule = hotwordRule,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy