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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageMapping.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Caption Language Mapping
 */
public class HlsCaptionLanguageMapping private constructor(builder: Builder) {
    /**
     * Caption channel.
     */
    public val captionChannel: kotlin.Int? = builder.captionChannel
    /**
     * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 three-letter language code
     */
    public val customLanguageCode: kotlin.String? = builder.customLanguageCode
    /**
     * Specify the language, using the ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php.
     */
    public val languageCode: aws.sdk.kotlin.services.mediaconvert.model.LanguageCode? = builder.languageCode
    /**
     * Caption language description.
     */
    public val languageDescription: kotlin.String? = builder.languageDescription

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

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

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

        if (captionChannel != other.captionChannel) return false
        if (customLanguageCode != other.customLanguageCode) 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.mediaconvert.model.HlsCaptionLanguageMapping = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Caption channel.
         */
        public var captionChannel: kotlin.Int? = null
        /**
         * Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 three-letter language code
         */
        public var customLanguageCode: kotlin.String? = null
        /**
         * Specify the language, using the ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php.
         */
        public var languageCode: aws.sdk.kotlin.services.mediaconvert.model.LanguageCode? = null
        /**
         * Caption language description.
         */
        public var languageDescription: kotlin.String? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageMapping = HlsCaptionLanguageMapping(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy