commonMain.aws.sdk.kotlin.services.appflow.model.PrefixFormat.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import kotlin.collections.List
public sealed class PrefixFormat {
public abstract val value: kotlin.String
public object Day : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
override val value: kotlin.String = "DAY"
override fun toString(): kotlin.String = "Day"
}
public object Hour : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
override val value: kotlin.String = "HOUR"
override fun toString(): kotlin.String = "Hour"
}
public object Minute : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
override val value: kotlin.String = "MINUTE"
override fun toString(): kotlin.String = "Minute"
}
public object Month : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
override val value: kotlin.String = "MONTH"
override fun toString(): kotlin.String = "Month"
}
public object Year : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
override val value: kotlin.String = "YEAR"
override fun toString(): kotlin.String = "Year"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appflow.model.PrefixFormat() {
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.appflow.model.PrefixFormat = when (value) {
"DAY" -> Day
"HOUR" -> Hour
"MINUTE" -> Minute
"MONTH" -> Month
"YEAR" -> Year
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Day,
Hour,
Minute,
Month,
Year,
)
}
}