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

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.Captions.kt Maven / Gradle / Ivy

There is a newer version: 1.3.37
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.elastictranscoder.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The captions to be created, if any.
 */
public class Captions private constructor(builder: Builder) {
    /**
     * The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
     */
    public val captionFormats: List? = builder.captionFormats
    /**
     * Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave `CaptionSources` blank.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val captionSources: List? = builder.captionSources
    /**
     * A policy that determines how Elastic Transcoder handles the existence of multiple captions.
     * + **MergeOverride:** Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
     * + **MergeRetain:** Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If `CaptionSources` is empty, Elastic Transcoder omits all sidecar captions from the output files.
     * + **Override:** Elastic Transcoder transcodes only the sidecar captions that you specify in `CaptionSources`.
     *
     * `MergePolicy` cannot be null.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public val mergePolicy: kotlin.String? = builder.mergePolicy

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

    override fun toString(): kotlin.String = buildString {
        append("Captions(")
        append("captionFormats=$captionFormats,")
        append("captionSources=$captionSources,")
        append("mergePolicy=$mergePolicy")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = captionFormats?.hashCode() ?: 0
        result = 31 * result + (captionSources?.hashCode() ?: 0)
        result = 31 * result + (mergePolicy?.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 Captions

        if (captionFormats != other.captionFormats) return false
        if (captionSources != other.captionSources) return false
        if (mergePolicy != other.mergePolicy) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
         */
        public var captionFormats: List? = null
        /**
         * Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave `CaptionSources` blank.
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var captionSources: List? = null
        /**
         * A policy that determines how Elastic Transcoder handles the existence of multiple captions.
         * + **MergeOverride:** Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
         * + **MergeRetain:** Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If `CaptionSources` is empty, Elastic Transcoder omits all sidecar captions from the output files.
         * + **Override:** Elastic Transcoder transcodes only the sidecar captions that you specify in `CaptionSources`.
         *
         * `MergePolicy` cannot be null.
         */
        @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
        public var mergePolicy: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.Captions) : this() {
            this.captionFormats = x.captionFormats
            this.captionSources = x.captionSources
            this.mergePolicy = x.mergePolicy
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy