commonMain.aws.sdk.kotlin.services.glue.model.SourceControlProvider.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import kotlin.collections.List
public sealed class SourceControlProvider {
public abstract val value: kotlin.String
public object AwsCodeCommit : aws.sdk.kotlin.services.glue.model.SourceControlProvider() {
override val value: kotlin.String = "AWS_CODE_COMMIT"
override fun toString(): kotlin.String = "AwsCodeCommit"
}
public object Bitbucket : aws.sdk.kotlin.services.glue.model.SourceControlProvider() {
override val value: kotlin.String = "BITBUCKET"
override fun toString(): kotlin.String = "Bitbucket"
}
public object Github : aws.sdk.kotlin.services.glue.model.SourceControlProvider() {
override val value: kotlin.String = "GITHUB"
override fun toString(): kotlin.String = "Github"
}
public object Gitlab : aws.sdk.kotlin.services.glue.model.SourceControlProvider() {
override val value: kotlin.String = "GITLAB"
override fun toString(): kotlin.String = "Gitlab"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.SourceControlProvider() {
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.glue.model.SourceControlProvider = when (value) {
"AWS_CODE_COMMIT" -> AwsCodeCommit
"BITBUCKET" -> Bitbucket
"GITHUB" -> Github
"GITLAB" -> Gitlab
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AwsCodeCommit,
Bitbucket,
Github,
Gitlab,
)
}
}