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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.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.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property fixedLikelihood Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
 * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
 * @property relativeLikelihood Increase or decrease the likelihood by the specified number of levels. For example,
 * if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1,
 * then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY.
 * Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an
 * adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY
 * will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
 */
public data class
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs(
    public val fixedLikelihood: Output? = null,
    public val relativeLikelihood: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
            .fixedLikelihood(fixedLikelihood?.applyValue({ args0 -> args0 }))
            .relativeLikelihood(relativeLikelihood?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs].
 */
@PulumiTagMarker
public class
PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgsBuilder
internal constructor() {
    private var fixedLikelihood: Output? = null

    private var relativeLikelihood: Output? = null

    /**
     * @param value Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
     * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
     */
    @JvmName("crbxlcvsenfiints")
    public suspend fun fixedLikelihood(`value`: Output) {
        this.fixedLikelihood = value
    }

    /**
     * @param value Increase or decrease the likelihood by the specified number of levels. For example,
     * if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1,
     * then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY.
     * Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an
     * adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY
     * will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
     */
    @JvmName("xluqjkrmdyxuryja")
    public suspend fun relativeLikelihood(`value`: Output) {
        this.relativeLikelihood = value
    }

    /**
     * @param value Set the likelihood of a finding to a fixed value. Either this or relative_likelihood can be set.
     * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
     */
    @JvmName("juemujcfeymqldsu")
    public suspend fun fixedLikelihood(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixedLikelihood = mapped
    }

    /**
     * @param value Increase or decrease the likelihood by the specified number of levels. For example,
     * if a finding would be POSSIBLE without the detection rule and relativeLikelihood is 1,
     * then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY.
     * Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an
     * adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY
     * will result in a final likelihood of LIKELY. Either this or fixed_likelihood can be set.
     */
    @JvmName("hqhqqqmhhaloghxv")
    public suspend fun relativeLikelihood(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relativeLikelihood = mapped
    }

    internal fun build(): PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs =
        PreventionInspectTemplateInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs(
            fixedLikelihood = fixedLikelihood,
            relativeLikelihood = relativeLikelihood,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy