commonMain.aws.sdk.kotlin.services.shield.model.ProtectionGroupPattern.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 ProtectionGroupPattern {
abstract val value: kotlin.String
object All : aws.sdk.kotlin.services.shield.model.ProtectionGroupPattern() {
override val value: kotlin.String = "ALL"
override fun toString(): kotlin.String = value
}
object Arbitrary : aws.sdk.kotlin.services.shield.model.ProtectionGroupPattern() {
override val value: kotlin.String = "ARBITRARY"
override fun toString(): kotlin.String = value
}
object ByResourceType : aws.sdk.kotlin.services.shield.model.ProtectionGroupPattern() {
override val value: kotlin.String = "BY_RESOURCE_TYPE"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.shield.model.ProtectionGroupPattern() {
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.ProtectionGroupPattern = when(str) {
"ALL" -> All
"ARBITRARY" -> Arbitrary
"BY_RESOURCE_TYPE" -> ByResourceType
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
All,
Arbitrary,
ByResourceType
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy