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

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

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

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



/**
 * Scte27 Source Settings
 */
public class Scte27SourceSettings private constructor(builder: Builder) {
    /**
     * If you will configure a WebVTT caption description that references this caption selector, use this field to provide the language to consider when translating the image-based source to text.
     */
    public val ocrLanguage: aws.sdk.kotlin.services.medialive.model.Scte27OcrLanguage? = builder.ocrLanguage
    /**
     * The pid field is used in conjunction with the caption selector languageCode field as follows: - Specify PID and Language: Extracts captions from that PID; the language is "informational". - Specify PID and omit Language: Extracts the specified PID. - Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be. - Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages will be passed through.
     */
    public val pid: kotlin.Int = builder.pid

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

    override fun toString(): kotlin.String = buildString {
        append("Scte27SourceSettings(")
        append("ocrLanguage=$ocrLanguage,")
        append("pid=$pid")
        append(")")
    }

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

        if (ocrLanguage != other.ocrLanguage) return false
        if (pid != other.pid) return false

        return true
    }

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

    public class Builder {
        /**
         * If you will configure a WebVTT caption description that references this caption selector, use this field to provide the language to consider when translating the image-based source to text.
         */
        public var ocrLanguage: aws.sdk.kotlin.services.medialive.model.Scte27OcrLanguage? = null
        /**
         * The pid field is used in conjunction with the caption selector languageCode field as follows: - Specify PID and Language: Extracts captions from that PID; the language is "informational". - Specify PID and omit Language: Extracts the specified PID. - Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be. - Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages will be passed through.
         */
        public var pid: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.Scte27SourceSettings) : this() {
            this.ocrLanguage = x.ocrLanguage
            this.pid = x.pid
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy