
commonMain.aws.sdk.kotlin.services.medialive.model.DvbSubSourceSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Dvb Sub Source Settings
*/
public class DvbSubSourceSettings 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.DvbSubOcrLanguage? = builder.ocrLanguage
/**
* When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors.
*/
public val pid: kotlin.Int = builder.pid
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.DvbSubSourceSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DvbSubSourceSettings(")
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 DvbSubSourceSettings
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.DvbSubSourceSettings = 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.DvbSubOcrLanguage? = null
/**
* When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors.
*/
public var pid: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.DvbSubSourceSettings) : this() {
this.ocrLanguage = x.ocrLanguage
this.pid = x.pid
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.DvbSubSourceSettings = DvbSubSourceSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy