commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ComputeType.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import kotlin.collections.List
public sealed class ComputeType {
public abstract val value: kotlin.String
public object BuildGeneral1Large : aws.sdk.kotlin.services.elasticbeanstalk.model.ComputeType() {
override val value: kotlin.String = "BUILD_GENERAL1_LARGE"
override fun toString(): kotlin.String = "BuildGeneral1Large"
}
public object BuildGeneral1Medium : aws.sdk.kotlin.services.elasticbeanstalk.model.ComputeType() {
override val value: kotlin.String = "BUILD_GENERAL1_MEDIUM"
override fun toString(): kotlin.String = "BuildGeneral1Medium"
}
public object BuildGeneral1Small : aws.sdk.kotlin.services.elasticbeanstalk.model.ComputeType() {
override val value: kotlin.String = "BUILD_GENERAL1_SMALL"
override fun toString(): kotlin.String = "BuildGeneral1Small"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.elasticbeanstalk.model.ComputeType() {
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.elasticbeanstalk.model.ComputeType = when (value) {
"BUILD_GENERAL1_LARGE" -> BuildGeneral1Large
"BUILD_GENERAL1_MEDIUM" -> BuildGeneral1Medium
"BUILD_GENERAL1_SMALL" -> BuildGeneral1Small
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
BuildGeneral1Large,
BuildGeneral1Medium,
BuildGeneral1Small,
)
}
}