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

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

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

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



/**
 * Scte20 Source Settings
 */
public class Scte20SourceSettings private constructor(builder: Builder) {
    /**
     * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded.
     */
    public val convert608To708: aws.sdk.kotlin.services.medialive.model.Scte20Convert608To708? = builder.convert608To708
    /**
     * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough.
     */
    public val source608ChannelNumber: kotlin.Int = builder.source608ChannelNumber

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

    override fun toString(): kotlin.String = buildString {
        append("Scte20SourceSettings(")
        append("convert608To708=$convert608To708,")
        append("source608ChannelNumber=$source608ChannelNumber")
        append(")")
    }

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

        if (convert608To708 != other.convert608To708) return false
        if (source608ChannelNumber != other.source608ChannelNumber) return false

        return true
    }

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

    public class Builder {
        /**
         * If upconvert, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded.
         */
        public var convert608To708: aws.sdk.kotlin.services.medialive.model.Scte20Convert608To708? = null
        /**
         * Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough.
         */
        public var source608ChannelNumber: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.Scte20SourceSettings) : this() {
            this.convert608To708 = x.convert608To708
            this.source608ChannelNumber = x.source608ChannelNumber
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy