commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SpendLimitName.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import kotlin.collections.List
public sealed class SpendLimitName {
public abstract val value: kotlin.String
public object TextMessageMonthlySpendLimit : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SpendLimitName() {
override val value: kotlin.String = "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT"
override fun toString(): kotlin.String = value
}
public object VoiceMessageMonthlySpendLimit : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SpendLimitName() {
override val value: kotlin.String = "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SpendLimitName() {
override fun toString(): kotlin.String = value
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SpendLimitName = when(str) {
"TEXT_MESSAGE_MONTHLY_SPEND_LIMIT" -> TextMessageMonthlySpendLimit
"VOICE_MESSAGE_MONTHLY_SPEND_LIMIT" -> VoiceMessageMonthlySpendLimit
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
TextMessageMonthlySpendLimit,
VoiceMessageMonthlySpendLimit
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy