commonMain.aws.sdk.kotlin.services.servicequotas.model.PeriodUnit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of servicequotas-jvm Show documentation
Show all versions of servicequotas-jvm Show documentation
The AWS SDK for Kotlin client for Service Quotas
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.servicequotas.model
import kotlin.collections.List
public sealed class PeriodUnit {
public abstract val value: kotlin.String
public object Day : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "DAY"
override fun toString(): kotlin.String = "Day"
}
public object Hour : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "HOUR"
override fun toString(): kotlin.String = "Hour"
}
public object Microsecond : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "MICROSECOND"
override fun toString(): kotlin.String = "Microsecond"
}
public object Millisecond : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "MILLISECOND"
override fun toString(): kotlin.String = "Millisecond"
}
public object Minute : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "MINUTE"
override fun toString(): kotlin.String = "Minute"
}
public object Second : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "SECOND"
override fun toString(): kotlin.String = "Second"
}
public object Week : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
override val value: kotlin.String = "WEEK"
override fun toString(): kotlin.String = "Week"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.servicequotas.model.PeriodUnit() {
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.servicequotas.model.PeriodUnit = when (value) {
"DAY" -> Day
"HOUR" -> Hour
"MICROSECOND" -> Microsecond
"MILLISECOND" -> Millisecond
"MINUTE" -> Minute
"SECOND" -> Second
"WEEK" -> Week
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,
Microsecond,
Millisecond,
Minute,
Second,
Week,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy