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

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

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

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



/**
 * Maps a caption channel to an ISO 693-2 language code (http://www.loc.gov/standards/iso639-2), with an optional description.
 */
public class CaptionLanguageMapping private constructor(builder: Builder) {
    /**
     * The closed caption channel being described by this CaptionLanguageMapping. Each channel mapping must have a unique channel number (maximum of 4)
     */
    public val captionChannel: kotlin.Int = builder.captionChannel
    /**
     * Three character ISO 639-2 language code (see http://www.loc.gov/standards/iso639-2)
     */
    public val languageCode: kotlin.String? = builder.languageCode
    /**
     * Textual description of language
     */
    public val languageDescription: kotlin.String? = builder.languageDescription

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

    override fun toString(): kotlin.String = buildString {
        append("CaptionLanguageMapping(")
        append("captionChannel=$captionChannel,")
        append("languageCode=$languageCode,")
        append("languageDescription=$languageDescription")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = captionChannel
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (languageDescription?.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 CaptionLanguageMapping

        if (captionChannel != other.captionChannel) return false
        if (languageCode != other.languageCode) return false
        if (languageDescription != other.languageDescription) return false

        return true
    }

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

    public class Builder {
        /**
         * The closed caption channel being described by this CaptionLanguageMapping. Each channel mapping must have a unique channel number (maximum of 4)
         */
        public var captionChannel: kotlin.Int = 0
        /**
         * Three character ISO 639-2 language code (see http://www.loc.gov/standards/iso639-2)
         */
        public var languageCode: kotlin.String? = null
        /**
         * Textual description of language
         */
        public var languageDescription: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.CaptionLanguageMapping) : this() {
            this.captionChannel = x.captionChannel
            this.languageCode = x.languageCode
            this.languageDescription = x.languageDescription
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy