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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.AncillarySourceSettings.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Settings for ancillary captions source.
 */
public class AncillarySourceSettings private constructor(builder: Builder) {
    /**
     * Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
     */
    public val convert608To708: aws.sdk.kotlin.services.mediaconvert.model.AncillaryConvert608To708? = builder.convert608To708
    /**
     * Specifies the 608 channel number in the ancillary data track from which to extract captions. Unused for passthrough.
     */
    public val sourceAncillaryChannelNumber: kotlin.Int? = builder.sourceAncillaryChannelNumber
    /**
     * By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
     */
    public val terminateCaptions: aws.sdk.kotlin.services.mediaconvert.model.AncillaryTerminateCaptions? = builder.terminateCaptions

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

    override fun toString(): kotlin.String = buildString {
        append("AncillarySourceSettings(")
        append("convert608To708=$convert608To708,")
        append("sourceAncillaryChannelNumber=$sourceAncillaryChannelNumber,")
        append("terminateCaptions=$terminateCaptions")
        append(")")
    }

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

        if (convert608To708 != other.convert608To708) return false
        if (sourceAncillaryChannelNumber != other.sourceAncillaryChannelNumber) return false
        if (terminateCaptions != other.terminateCaptions) return false

        return true
    }

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

    public class Builder {
        /**
         * Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
         */
        public var convert608To708: aws.sdk.kotlin.services.mediaconvert.model.AncillaryConvert608To708? = null
        /**
         * Specifies the 608 channel number in the ancillary data track from which to extract captions. Unused for passthrough.
         */
        public var sourceAncillaryChannelNumber: kotlin.Int? = null
        /**
         * By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
         */
        public var terminateCaptions: aws.sdk.kotlin.services.mediaconvert.model.AncillaryTerminateCaptions? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.AncillarySourceSettings) : this() {
            this.convert608To708 = x.convert608To708
            this.sourceAncillaryChannelNumber = x.sourceAncillaryChannelNumber
            this.terminateCaptions = x.terminateCaptions
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy