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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.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.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.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 PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs(
    public val exclusionRule: Output? = null,
    public val hotwordRule: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs.builder()
            .exclusionRule(exclusionRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hotwordRule(hotwordRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerInspectJobInspectConfigRuleSetRuleArgsBuilder 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("gtoenvkvjwxibdul")
    public suspend fun exclusionRule(`value`: Output) {
        this.exclusionRule = value
    }

    /**
     * @param value Hotword-based detection rule.
     * Structure is documented below.
     */
    @JvmName("xbskhvpylibnhuga")
    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("ruydgecqnfahirwr")
    public suspend fun exclusionRule(`value`: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs?) {
        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("kyginjfbgkxutvwh")
    public suspend fun exclusionRule(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.exclusionRule = mapped
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy