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

commonMain.aws.sdk.kotlin.services.medialive.model.DeviceSettingsSyncState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model

import kotlin.collections.List

/**
 * The status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration.
 */
public sealed class DeviceSettingsSyncState {
    public abstract val value: kotlin.String

    public object Synced : aws.sdk.kotlin.services.medialive.model.DeviceSettingsSyncState() {
        override val value: kotlin.String = "SYNCED"
        override fun toString(): kotlin.String = "Synced"
    }

    public object Syncing : aws.sdk.kotlin.services.medialive.model.DeviceSettingsSyncState() {
        override val value: kotlin.String = "SYNCING"
        override fun toString(): kotlin.String = "Syncing"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.medialive.model.DeviceSettingsSyncState() {
        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.medialive.model.DeviceSettingsSyncState = when (value) {
            "SYNCED" -> Synced
            "SYNCING" -> Syncing
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Synced,
            Syncing,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy