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

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

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

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



/**
 * Audio Language Selection
 */
public class AudioLanguageSelection private constructor(builder: Builder) {
    /**
     * Selects a specific three-letter language code from within an audio source.
     */
    public val languageCode: kotlin.String? = builder.languageCode
    /**
     * When set to "strict", the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present then mute will be encoded until the language returns. If "loose", then on a PMT update the demux will choose another audio stream in the program with the same stream type if it can't find one with the same language.
     */
    public val languageSelectionPolicy: aws.sdk.kotlin.services.medialive.model.AudioLanguageSelectionPolicy? = builder.languageSelectionPolicy

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.AudioLanguageSelection = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AudioLanguageSelection(")
        append("languageCode=$languageCode,")
        append("languageSelectionPolicy=$languageSelectionPolicy")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = languageCode?.hashCode() ?: 0
        result = 31 * result + (languageSelectionPolicy?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as AudioLanguageSelection

        if (languageCode != other.languageCode) return false
        if (languageSelectionPolicy != other.languageSelectionPolicy) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.AudioLanguageSelection = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Selects a specific three-letter language code from within an audio source.
         */
        public var languageCode: kotlin.String? = null
        /**
         * When set to "strict", the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present then mute will be encoded until the language returns. If "loose", then on a PMT update the demux will choose another audio stream in the program with the same stream type if it can't find one with the same language.
         */
        public var languageSelectionPolicy: aws.sdk.kotlin.services.medialive.model.AudioLanguageSelectionPolicy? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.AudioLanguageSelection) : this() {
            this.languageCode = x.languageCode
            this.languageSelectionPolicy = x.languageSelectionPolicy
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.AudioLanguageSelection = AudioLanguageSelection(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy