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

com.pulumi.awsnative.databrew.kotlin.outputs.RulesetThreshold.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.databrew.kotlin.outputs

import com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdType
import com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdUnit
import kotlin.Double
import kotlin.Suppress

/**
 *
 * @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 RulesetThreshold(
    public val type: RulesetThresholdType? = null,
    public val unit: RulesetThresholdUnit? = null,
    public val `value`: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.databrew.outputs.RulesetThreshold): RulesetThreshold = RulesetThreshold(
            type = javaType.type().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            unit = javaType.unit().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.databrew.kotlin.enums.RulesetThresholdUnit.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `value` = javaType.`value`(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy