
commonMain.aws.sdk.kotlin.services.medialive.model.CaptionSelector.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Caption Selector
*/
public class CaptionSelector private constructor(builder: Builder) {
/**
* When specified this field indicates the three letter language code of the caption track to extract from the source.
*/
public val languageCode: kotlin.String? = builder.languageCode
/**
* Name identifier for a caption selector. This name is used to associate this caption selector with one or more caption descriptions. Names must be unique within an event.
*/
public val name: kotlin.String? = builder.name
/**
* Caption selector settings.
*/
public val selectorSettings: aws.sdk.kotlin.services.medialive.model.CaptionSelectorSettings? = builder.selectorSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.CaptionSelector = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CaptionSelector(")
append("languageCode=$languageCode,")
append("name=$name,")
append("selectorSettings=$selectorSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = languageCode?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (selectorSettings?.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 CaptionSelector
if (languageCode != other.languageCode) return false
if (name != other.name) return false
if (selectorSettings != other.selectorSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.CaptionSelector = Builder(this).apply(block).build()
public class Builder {
/**
* When specified this field indicates the three letter language code of the caption track to extract from the source.
*/
public var languageCode: kotlin.String? = null
/**
* Name identifier for a caption selector. This name is used to associate this caption selector with one or more caption descriptions. Names must be unique within an event.
*/
public var name: kotlin.String? = null
/**
* Caption selector settings.
*/
public var selectorSettings: aws.sdk.kotlin.services.medialive.model.CaptionSelectorSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.CaptionSelector) : this() {
this.languageCode = x.languageCode
this.name = x.name
this.selectorSettings = x.selectorSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.CaptionSelector = CaptionSelector(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.CaptionSelectorSettings] inside the given [block]
*/
public fun selectorSettings(block: aws.sdk.kotlin.services.medialive.model.CaptionSelectorSettings.Builder.() -> kotlin.Unit) {
this.selectorSettings = aws.sdk.kotlin.services.medialive.model.CaptionSelectorSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy