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

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

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

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

import kotlin.collections.List

/**
 * Input preference when deciding which input to make active when a previously failed input has recovered. If \"EQUAL_INPUT_PREFERENCE\", then the active input will stay active as long as it is healthy. If \"PRIMARY_INPUT_PREFERRED\", then always switch back to the primary input when it is healthy.
 */
public sealed class InputPreference {
    public abstract val value: kotlin.String

    public object EqualInputPreference : aws.sdk.kotlin.services.medialive.model.InputPreference() {
        override val value: kotlin.String = "EQUAL_INPUT_PREFERENCE"
        override fun toString(): kotlin.String = "EqualInputPreference"
    }

    public object PrimaryInputPreferred : aws.sdk.kotlin.services.medialive.model.InputPreference() {
        override val value: kotlin.String = "PRIMARY_INPUT_PREFERRED"
        override fun toString(): kotlin.String = "PrimaryInputPreferred"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.medialive.model.InputPreference() {
        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.InputPreference = when (value) {
            "EQUAL_INPUT_PREFERENCE" -> EqualInputPreference
            "PRIMARY_INPUT_PREFERRED" -> PrimaryInputPreferred
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            EqualInputPreference,
            PrimaryInputPreferred,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy