commonMain.aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
import kotlin.collections.List
sealed class ProtectionGroupAggregation {
abstract val value: kotlin.String
object Max : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "MAX"
override fun toString(): kotlin.String = value
}
object Mean : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "MEAN"
override fun toString(): kotlin.String = value
}
object Sum : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "SUM"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override fun toString(): kotlin.String = value
}
companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation = when(str) {
"MAX" -> Max
"MEAN" -> Mean
"SUM" -> Sum
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
Max,
Mean,
Sum
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy