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

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

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

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

import kotlin.collections.List

/**
 * Indicates which pipeline is preferred by the multiplex for program ingest. If set to \"PIPELINE_0\" or \"PIPELINE_1\" and an unhealthy ingest causes the multiplex to switch to the non-preferred pipeline, it will switch back once that ingest is healthy again. If set to \"CURRENTLY_ACTIVE\", it will not switch back to the other pipeline based on it recovering to a healthy state, it will only switch if the active pipeline becomes unhealthy.
 */
public sealed class PreferredChannelPipeline {
    public abstract val value: kotlin.String

    public object CurrentlyActive : aws.sdk.kotlin.services.medialive.model.PreferredChannelPipeline() {
        override val value: kotlin.String = "CURRENTLY_ACTIVE"
        override fun toString(): kotlin.String = "CurrentlyActive"
    }

    public object Pipeline0 : aws.sdk.kotlin.services.medialive.model.PreferredChannelPipeline() {
        override val value: kotlin.String = "PIPELINE_0"
        override fun toString(): kotlin.String = "Pipeline0"
    }

    public object Pipeline1 : aws.sdk.kotlin.services.medialive.model.PreferredChannelPipeline() {
        override val value: kotlin.String = "PIPELINE_1"
        override fun toString(): kotlin.String = "Pipeline1"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.medialive.model.PreferredChannelPipeline() {
        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.PreferredChannelPipeline = when (value) {
            "CURRENTLY_ACTIVE" -> CurrentlyActive
            "PIPELINE_0" -> Pipeline0
            "PIPELINE_1" -> Pipeline1
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            CurrentlyActive,
            Pipeline0,
            Pipeline1,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy