com.pulumi.googlenative.dlp.v2.kotlin.inputs.GooglePrivacyDlpV2LikelihoodAdjustmentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dlp.v2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dlp.v2.inputs.GooglePrivacyDlpV2LikelihoodAdjustmentArgs.builder
import com.pulumi.googlenative.dlp.v2.kotlin.enums.GooglePrivacyDlpV2LikelihoodAdjustmentFixedLikelihood
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
* @property fixedLikelihood Set the likelihood of a finding to a fixed value.
* @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 `relative_likelihood` 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`.
*/
public data class GooglePrivacyDlpV2LikelihoodAdjustmentArgs(
public val fixedLikelihood: Output? = null,
public val relativeLikelihood: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dlp.v2.inputs.GooglePrivacyDlpV2LikelihoodAdjustmentArgs =
com.pulumi.googlenative.dlp.v2.inputs.GooglePrivacyDlpV2LikelihoodAdjustmentArgs.builder()
.fixedLikelihood(fixedLikelihood?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.relativeLikelihood(relativeLikelihood?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GooglePrivacyDlpV2LikelihoodAdjustmentArgs].
*/
@PulumiTagMarker
public class GooglePrivacyDlpV2LikelihoodAdjustmentArgsBuilder internal constructor() {
private var fixedLikelihood: Output? = null
private var relativeLikelihood: Output? = null
/**
* @param value Set the likelihood of a finding to a fixed value.
*/
@JvmName("rtstgymrgtagcbvi")
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 `relative_likelihood` 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`.
*/
@JvmName("awsnrtubllmacofp")
public suspend fun relativeLikelihood(`value`: Output) {
this.relativeLikelihood = value
}
/**
* @param value Set the likelihood of a finding to a fixed value.
*/
@JvmName("cnpvlyhitkfwknkp")
public suspend fun fixedLikelihood(`value`: GooglePrivacyDlpV2LikelihoodAdjustmentFixedLikelihood?) {
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 `relative_likelihood` 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`.
*/
@JvmName("qtbrihmvlscdpliy")
public suspend fun relativeLikelihood(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.relativeLikelihood = mapped
}
internal fun build(): GooglePrivacyDlpV2LikelihoodAdjustmentArgs =
GooglePrivacyDlpV2LikelihoodAdjustmentArgs(
fixedLikelihood = fixedLikelihood,
relativeLikelihood = relativeLikelihood,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy