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

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

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

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



/**
 * Embedded Source Settings
 */
public class EmbeddedSourceSettings 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.EmbeddedConvert608To708? = builder.convert608To708
    /**
     * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions.
     */
    public val scte20Detection: aws.sdk.kotlin.services.medialive.model.EmbeddedScte20Detection? = builder.scte20Detection
    /**
     * 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
    /**
     * This field is unused and deprecated.
     */
    public val source608TrackNumber: kotlin.Int = builder.source608TrackNumber

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

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

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

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.EmbeddedSourceSettings = 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.EmbeddedConvert608To708? = null
        /**
         * Set to "auto" to handle streams with intermittent and/or non-aligned SCTE-20 and Embedded captions.
         */
        public var scte20Detection: aws.sdk.kotlin.services.medialive.model.EmbeddedScte20Detection? = 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
        /**
         * This field is unused and deprecated.
         */
        public var source608TrackNumber: kotlin.Int = 0

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy