
commonMain.aws.sdk.kotlin.services.medialive.model.TeletextSourceSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Teletext Source Settings
*/
public class TeletextSourceSettings private constructor(builder: Builder) {
/**
* Optionally defines a region where TTML style captions will be displayed
*/
public val outputRectangle: aws.sdk.kotlin.services.medialive.model.CaptionRectangle? = builder.outputRectangle
/**
* Specifies the teletext page number within the data stream from which to extract captions. Range of 0x100 (256) to 0x8FF (2303). Unused for passthrough. Should be specified as a hexadecimal string with no "0x" prefix.
*/
public val pageNumber: kotlin.String? = builder.pageNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.TeletextSourceSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TeletextSourceSettings(")
append("outputRectangle=$outputRectangle,")
append("pageNumber=$pageNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = outputRectangle?.hashCode() ?: 0
result = 31 * result + (pageNumber?.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 TeletextSourceSettings
if (outputRectangle != other.outputRectangle) return false
if (pageNumber != other.pageNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.TeletextSourceSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Optionally defines a region where TTML style captions will be displayed
*/
public var outputRectangle: aws.sdk.kotlin.services.medialive.model.CaptionRectangle? = null
/**
* Specifies the teletext page number within the data stream from which to extract captions. Range of 0x100 (256) to 0x8FF (2303). Unused for passthrough. Should be specified as a hexadecimal string with no "0x" prefix.
*/
public var pageNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.TeletextSourceSettings) : this() {
this.outputRectangle = x.outputRectangle
this.pageNumber = x.pageNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.TeletextSourceSettings = TeletextSourceSettings(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.CaptionRectangle] inside the given [block]
*/
public fun outputRectangle(block: aws.sdk.kotlin.services.medialive.model.CaptionRectangle.Builder.() -> kotlin.Unit) {
this.outputRectangle = aws.sdk.kotlin.services.medialive.model.CaptionRectangle.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy