commonMain.aws.sdk.kotlin.services.databrew.model.ThresholdUnit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import kotlin.collections.List
public sealed class ThresholdUnit {
public abstract val value: kotlin.String
public object Count : aws.sdk.kotlin.services.databrew.model.ThresholdUnit() {
override val value: kotlin.String = "COUNT"
override fun toString(): kotlin.String = "Count"
}
public object Percentage : aws.sdk.kotlin.services.databrew.model.ThresholdUnit() {
override val value: kotlin.String = "PERCENTAGE"
override fun toString(): kotlin.String = "Percentage"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.databrew.model.ThresholdUnit() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.databrew.model.ThresholdUnit = when (value) {
"COUNT" -> Count
"PERCENTAGE" -> Percentage
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Count,
Percentage,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy