com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.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
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs(
public val fixedLikelihood: Output? = null,
public val relativeLikelihood: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs =
com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs.builder()
.fixedLikelihood(fixedLikelihood?.applyValue({ args0 -> args0 }))
.relativeLikelihood(relativeLikelihood?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs].
*/
@PulumiTagMarker
public class
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgsBuilder
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("lmitjmgvtnboqogo")
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("xtjqnbvpvehkchya")
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("ktfvhvudblxlebmw")
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("eonrfxtytfiigllh")
public suspend fun relativeLikelihood(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.relativeLikelihood = mapped
}
internal fun build(): PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleHotwordRuleLikelihoodAdjustmentArgs(
fixedLikelihood = fixedLikelihood,
relativeLikelihood = relativeLikelihood,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy