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

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

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

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



/**
 * Caption Description
 */
public class CaptionDescription private constructor(builder: Builder) {
    /**
     * Indicates whether the caption track implements accessibility features such as written descriptions of spoken dialog, music, and sounds.
     */
    public val accessibility: aws.sdk.kotlin.services.medialive.model.AccessibilityType? = builder.accessibility
    /**
     * Specifies which input caption selector to use as a caption source when generating output captions. This field should match a captionSelector name.
     */
    public val captionSelectorName: kotlin.String? = builder.captionSelectorName
    /**
     * Additional settings for captions destination that depend on the destination type.
     */
    public val destinationSettings: aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings? = builder.destinationSettings
    /**
     * ISO 639-2 three-digit code: http://www.loc.gov/standards/iso639-2/
     */
    public val languageCode: kotlin.String? = builder.languageCode
    /**
     * Human readable information to indicate captions available for players (eg. English, or Spanish).
     */
    public val languageDescription: kotlin.String? = builder.languageDescription
    /**
     * Name of the caption description. Used to associate a caption description with an output. Names must be unique within an event.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("CaptionDescription(")
        append("accessibility=$accessibility,")
        append("captionSelectorName=$captionSelectorName,")
        append("destinationSettings=$destinationSettings,")
        append("languageCode=$languageCode,")
        append("languageDescription=$languageDescription,")
        append("name=$name")
        append(")")
    }

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

        if (accessibility != other.accessibility) return false
        if (captionSelectorName != other.captionSelectorName) return false
        if (destinationSettings != other.destinationSettings) return false
        if (languageCode != other.languageCode) return false
        if (languageDescription != other.languageDescription) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * Indicates whether the caption track implements accessibility features such as written descriptions of spoken dialog, music, and sounds.
         */
        public var accessibility: aws.sdk.kotlin.services.medialive.model.AccessibilityType? = null
        /**
         * Specifies which input caption selector to use as a caption source when generating output captions. This field should match a captionSelector name.
         */
        public var captionSelectorName: kotlin.String? = null
        /**
         * Additional settings for captions destination that depend on the destination type.
         */
        public var destinationSettings: aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings? = null
        /**
         * ISO 639-2 three-digit code: http://www.loc.gov/standards/iso639-2/
         */
        public var languageCode: kotlin.String? = null
        /**
         * Human readable information to indicate captions available for players (eg. English, or Spanish).
         */
        public var languageDescription: kotlin.String? = null
        /**
         * Name of the caption description. Used to associate a caption description with an output. Names must be unique within an event.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.CaptionDescription) : this() {
            this.accessibility = x.accessibility
            this.captionSelectorName = x.captionSelectorName
            this.destinationSettings = x.destinationSettings
            this.languageCode = x.languageCode
            this.languageDescription = x.languageDescription
            this.name = x.name
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings] inside the given [block]
         */
        public fun destinationSettings(block: aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings.Builder.() -> kotlin.Unit) {
            this.destinationSettings = aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy