commonMain.aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import kotlin.collections.List
public sealed class DqCompositeRuleEvaluationMethod {
public abstract val value: kotlin.String
public object Column : aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod() {
override val value: kotlin.String = "COLUMN"
override fun toString(): kotlin.String = "Column"
}
public object Row : aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod() {
override val value: kotlin.String = "ROW"
override fun toString(): kotlin.String = "Row"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod() {
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.glue.model.DqCompositeRuleEvaluationMethod = when (value) {
"COLUMN" -> Column
"ROW" -> Row
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Column,
Row,
)
}
}