
commonMain.aws.sdk.kotlin.services.mediaconvert.model.EmbeddedSourceSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Settings for embedded captions Source
*/
public class EmbeddedSourceSettings 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.EmbeddedConvert608To708? = 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
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so this should always be set to '1'.
*/
public val source608TrackNumber: kotlin.Int? = builder.source608TrackNumber
/**
* 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.EmbeddedTerminateCaptions? = builder.terminateCaptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.EmbeddedSourceSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EmbeddedSourceSettings(")
append("convert608To708=$convert608To708,")
append("source608ChannelNumber=$source608ChannelNumber,")
append("source608TrackNumber=$source608TrackNumber,")
append("terminateCaptions=$terminateCaptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = convert608To708?.hashCode() ?: 0
result = 31 * result + (source608ChannelNumber ?: 0)
result = 31 * result + (source608TrackNumber ?: 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 EmbeddedSourceSettings
if (convert608To708 != other.convert608To708) return false
if (source608ChannelNumber != other.source608ChannelNumber) return false
if (source608TrackNumber != other.source608TrackNumber) return false
if (terminateCaptions != other.terminateCaptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.EmbeddedSourceSettings = 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.EmbeddedConvert608To708? = null
/**
* Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough.
*/
public var source608ChannelNumber: kotlin.Int? = null
/**
* Specifies the video track index used for extracting captions. The system only supports one input video track, so this should always be set to '1'.
*/
public var source608TrackNumber: 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.EmbeddedTerminateCaptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.EmbeddedSourceSettings) : this() {
this.convert608To708 = x.convert608To708
this.source608ChannelNumber = x.source608ChannelNumber
this.source608TrackNumber = x.source608TrackNumber
this.terminateCaptions = x.terminateCaptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.EmbeddedSourceSettings = EmbeddedSourceSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy