aws.sdk.kotlin.services.sagemaker.model.AppSecurityGroupManagement.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
sealed class AppSecurityGroupManagement {
abstract val value: kotlin.String
object Customer : aws.sdk.kotlin.services.sagemaker.model.AppSecurityGroupManagement() {
override val value: kotlin.String = "Customer"
override fun toString(): kotlin.String = value
}
object Service : aws.sdk.kotlin.services.sagemaker.model.AppSecurityGroupManagement() {
override val value: kotlin.String = "Service"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.sagemaker.model.AppSecurityGroupManagement() {
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.sagemaker.model.AppSecurityGroupManagement = when(str) {
"Customer" -> Customer
"Service" -> Service
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
Customer,
Service
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy