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

com.pulumi.awsnative.databrew.kotlin.inputs.RulesetThresholdArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.databrew.kotlin.inputs

import com.pulumi.awsnative.databrew.inputs.RulesetThresholdArgs.builder
import com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdType
import com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdUnit
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property type The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
 * @property unit Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
 * @property value The value of a threshold.
 */
public data class RulesetThresholdArgs(
    public val type: Output? = null,
    public val unit: Output? = null,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.inputs.RulesetThresholdArgs =
        com.pulumi.awsnative.databrew.inputs.RulesetThresholdArgs.builder()
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .unit(unit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RulesetThresholdArgs].
 */
@PulumiTagMarker
public class RulesetThresholdArgsBuilder internal constructor() {
    private var type: Output? = null

    private var unit: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
     */
    @JvmName("gxcmakgyuvphiado")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
     */
    @JvmName("hxhtsaymwlebwjvm")
    public suspend fun unit(`value`: Output) {
        this.unit = value
    }

    /**
     * @param value The value of a threshold.
     */
    @JvmName("oiracmvjsergjlyc")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.
     */
    @JvmName("cnjbvjbdyptvsrod")
    public suspend fun type(`value`: RulesetThresholdType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.
     */
    @JvmName("rvjbxmblakpdpomf")
    public suspend fun unit(`value`: RulesetThresholdUnit?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unit = mapped
    }

    /**
     * @param value The value of a threshold.
     */
    @JvmName("frridecpawpbfgea")
    public suspend fun `value`(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): RulesetThresholdArgs = RulesetThresholdArgs(
        type = type,
        unit = unit,
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy