All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.connect.model.HoursOfOperationDays.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connect.model

import kotlin.collections.List

public sealed class HoursOfOperationDays {
    public abstract val value: kotlin.String

    public object Friday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "FRIDAY"
        override fun toString(): kotlin.String = "Friday"
    }

    public object Monday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "MONDAY"
        override fun toString(): kotlin.String = "Monday"
    }

    public object Saturday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "SATURDAY"
        override fun toString(): kotlin.String = "Saturday"
    }

    public object Sunday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "SUNDAY"
        override fun toString(): kotlin.String = "Sunday"
    }

    public object Thursday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "THURSDAY"
        override fun toString(): kotlin.String = "Thursday"
    }

    public object Tuesday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "TUESDAY"
        override fun toString(): kotlin.String = "Tuesday"
    }

    public object Wednesday : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        override val value: kotlin.String = "WEDNESDAY"
        override fun toString(): kotlin.String = "Wednesday"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.connect.model.HoursOfOperationDays() {
        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.connect.model.HoursOfOperationDays = when (value) {
            "FRIDAY" -> Friday
            "MONDAY" -> Monday
            "SATURDAY" -> Saturday
            "SUNDAY" -> Sunday
            "THURSDAY" -> Thursday
            "TUESDAY" -> Tuesday
            "WEDNESDAY" -> Wednesday
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Friday,
            Monday,
            Saturday,
            Sunday,
            Thursday,
            Tuesday,
            Wednesday,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy