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

aws.sdk.kotlin.services.transcribe.model.Media.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transcribe.model



/**
 * Describes the input media file in a transcription request.
 */
class Media private constructor(builder: Builder) {
    /**
     * The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you
     * are calling. The general form is:
     * For example:
     * For more information about S3 object names, see Object Keys in the Amazon S3
     * Developer Guide.
     */
    val mediaFileUri: kotlin.String? = builder.mediaFileUri
    /**
     * The S3 object location for your redacted output media file. This is only supported for call analytics jobs.
     */
    val redactedMediaFileUri: kotlin.String? = builder.redactedMediaFileUri

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

    override fun toString(): kotlin.String = buildString {
        append("Media(")
        append("mediaFileUri=$mediaFileUri,")
        append("redactedMediaFileUri=$redactedMediaFileUri)")
    }

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

        if (mediaFileUri != other.mediaFileUri) return false
        if (redactedMediaFileUri != other.redactedMediaFileUri) return false

        return true
    }

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

    class Builder {
        /**
         * The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you
         * are calling. The general form is:
         * For example:
         * For more information about S3 object names, see Object Keys in the Amazon S3
         * Developer Guide.
         */
        var mediaFileUri: kotlin.String? = null
        /**
         * The S3 object location for your redacted output media file. This is only supported for call analytics jobs.
         */
        var redactedMediaFileUri: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribe.model.Media) : this() {
            this.mediaFileUri = x.mediaFileUri
            this.redactedMediaFileUri = x.redactedMediaFileUri
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy