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

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

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

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



/**
 * Audio Track Selection
 */
public class AudioTrackSelection private constructor(builder: Builder) {
    /**
     * Configure decoding options for Dolby E streams - these should be Dolby E frames carried in PCM streams tagged with SMPTE-337
     */
    public val dolbyEDecode: aws.sdk.kotlin.services.medialive.model.AudioDolbyEDecode? = builder.dolbyEDecode
    /**
     * Selects one or more unique audio tracks from within a source.
     */
    public val tracks: List? = builder.tracks

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

    override fun toString(): kotlin.String = buildString {
        append("AudioTrackSelection(")
        append("dolbyEDecode=$dolbyEDecode,")
        append("tracks=$tracks")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dolbyEDecode?.hashCode() ?: 0
        result = 31 * result + (tracks?.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 AudioTrackSelection

        if (dolbyEDecode != other.dolbyEDecode) return false
        if (tracks != other.tracks) return false

        return true
    }

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

    public class Builder {
        /**
         * Configure decoding options for Dolby E streams - these should be Dolby E frames carried in PCM streams tagged with SMPTE-337
         */
        public var dolbyEDecode: aws.sdk.kotlin.services.medialive.model.AudioDolbyEDecode? = null
        /**
         * Selects one or more unique audio tracks from within a source.
         */
        public var tracks: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.AudioTrackSelection) : this() {
            this.dolbyEDecode = x.dolbyEDecode
            this.tracks = x.tracks
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.AudioDolbyEDecode] inside the given [block]
         */
        public fun dolbyEDecode(block: aws.sdk.kotlin.services.medialive.model.AudioDolbyEDecode.Builder.() -> kotlin.Unit) {
            this.dolbyEDecode = aws.sdk.kotlin.services.medialive.model.AudioDolbyEDecode.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy