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
public sealed class ProtectionGroupAggregation {
public abstract val value: kotlin.String
public object Max : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "MAX"
override fun toString(): kotlin.String = "Max"
}
public object Mean : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "MEAN"
override fun toString(): kotlin.String = "Mean"
}
public object Sum : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
override val value: kotlin.String = "SUM"
override fun toString(): kotlin.String = "Sum"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.shield.model.ProtectionGroupAggregation() {
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.shield.model.ProtectionGroupAggregation = when (value) {
"MAX" -> Max
"MEAN" -> Mean
"SUM" -> Sum
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Max,
Mean,
Sum,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy