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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartVoiceToneAnalysisTaskRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmediapipelines.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartVoiceToneAnalysisTaskRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the client request. Use a different token for different voice tone analysis tasks.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * The task configuration for the Kinesis video stream source of the media insights pipeline.
     */
    public val kinesisVideoStreamSourceTaskConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration? = builder.kinesisVideoStreamSourceTaskConfiguration
    /**
     * The language code.
     */
    public val languageCode: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VoiceAnalyticsLanguageCode? = builder.languageCode

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

    override fun toString(): kotlin.String = buildString {
        append("StartVoiceToneAnalysisTaskRequest(")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("identifier=$identifier,")
        append("kinesisVideoStreamSourceTaskConfiguration=$kinesisVideoStreamSourceTaskConfiguration,")
        append("languageCode=$languageCode")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (identifier?.hashCode() ?: 0)
        result = 31 * result + (kinesisVideoStreamSourceTaskConfiguration?.hashCode() ?: 0)
        result = 31 * result + (languageCode?.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 StartVoiceToneAnalysisTaskRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (identifier != other.identifier) return false
        if (kinesisVideoStreamSourceTaskConfiguration != other.kinesisVideoStreamSourceTaskConfiguration) return false
        if (languageCode != other.languageCode) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier for the client request. Use a different token for different voice tone analysis tasks.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.
         */
        public var identifier: kotlin.String? = null
        /**
         * The task configuration for the Kinesis video stream source of the media insights pipeline.
         */
        public var kinesisVideoStreamSourceTaskConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration? = null
        /**
         * The language code.
         */
        public var languageCode: aws.sdk.kotlin.services.chimesdkmediapipelines.model.VoiceAnalyticsLanguageCode? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartVoiceToneAnalysisTaskRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.identifier = x.identifier
            this.kinesisVideoStreamSourceTaskConfiguration = x.kinesisVideoStreamSourceTaskConfiguration
            this.languageCode = x.languageCode
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy