commonMain.aws.sdk.kotlin.services.glue.model.AggFunction.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 AggFunction {
public abstract val value: kotlin.String
public object Avg : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "avg"
override fun toString(): kotlin.String = "Avg"
}
public object Count : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "count"
override fun toString(): kotlin.String = "Count"
}
public object CountDistinct : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "countDistinct"
override fun toString(): kotlin.String = "CountDistinct"
}
public object First : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "first"
override fun toString(): kotlin.String = "First"
}
public object Kurtosis : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "kurtosis"
override fun toString(): kotlin.String = "Kurtosis"
}
public object Last : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "last"
override fun toString(): kotlin.String = "Last"
}
public object Max : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "max"
override fun toString(): kotlin.String = "Max"
}
public object Min : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "min"
override fun toString(): kotlin.String = "Min"
}
public object Skewness : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "skewness"
override fun toString(): kotlin.String = "Skewness"
}
public object StddevPop : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "stddev_pop"
override fun toString(): kotlin.String = "StddevPop"
}
public object StddevSamp : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "stddev_samp"
override fun toString(): kotlin.String = "StddevSamp"
}
public object Sum : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "sum"
override fun toString(): kotlin.String = "Sum"
}
public object SumDistinct : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "sumDistinct"
override fun toString(): kotlin.String = "SumDistinct"
}
public object VarPop : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "var_pop"
override fun toString(): kotlin.String = "VarPop"
}
public object VarSamp : aws.sdk.kotlin.services.glue.model.AggFunction() {
override val value: kotlin.String = "var_samp"
override fun toString(): kotlin.String = "VarSamp"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.AggFunction() {
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.AggFunction = when (value) {
"avg" -> Avg
"count" -> Count
"countDistinct" -> CountDistinct
"first" -> First
"kurtosis" -> Kurtosis
"last" -> Last
"max" -> Max
"min" -> Min
"skewness" -> Skewness
"stddev_pop" -> StddevPop
"stddev_samp" -> StddevSamp
"sum" -> Sum
"sumDistinct" -> SumDistinct
"var_pop" -> VarPop
"var_samp" -> VarSamp
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Avg,
Count,
CountDistinct,
First,
Kurtosis,
Last,
Max,
Min,
Skewness,
StddevPop,
StddevSamp,
Sum,
SumDistinct,
VarPop,
VarSamp,
)
}
}