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

commonMain.aws.sdk.kotlin.services.translate.model.StartTextTranslationJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.translate.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartTextTranslationJobResponse private constructor(builder: Builder) {
    /**
     * The identifier generated for the job. To get the status of a job, use this ID with the DescribeTextTranslationJob operation.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The status of the job. Possible values include:
     * + `SUBMITTED` - The job has been received and is queued for processing.
     * + `IN_PROGRESS` - Amazon Translate is processing the job.
     * + `COMPLETED` - The job was successfully completed and the output is available.
     * + `COMPLETED_WITH_ERROR` - The job was completed with errors. The errors can be analyzed in the job's output.
     * + `FAILED` - The job did not complete. To get details, use the DescribeTextTranslationJob operation.
     * + `STOP_REQUESTED` - The user who started the job has requested that it be stopped.
     * + `STOPPED` - The job has been stopped.
     */
    public val jobStatus: aws.sdk.kotlin.services.translate.model.JobStatus? = builder.jobStatus

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

    override fun toString(): kotlin.String = buildString {
        append("StartTextTranslationJobResponse(")
        append("jobId=$jobId,")
        append("jobStatus=$jobStatus")
        append(")")
    }

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

        if (jobId != other.jobId) return false
        if (jobStatus != other.jobStatus) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier generated for the job. To get the status of a job, use this ID with the DescribeTextTranslationJob operation.
         */
        public var jobId: kotlin.String? = null
        /**
         * The status of the job. Possible values include:
         * + `SUBMITTED` - The job has been received and is queued for processing.
         * + `IN_PROGRESS` - Amazon Translate is processing the job.
         * + `COMPLETED` - The job was successfully completed and the output is available.
         * + `COMPLETED_WITH_ERROR` - The job was completed with errors. The errors can be analyzed in the job's output.
         * + `FAILED` - The job did not complete. To get details, use the DescribeTextTranslationJob operation.
         * + `STOP_REQUESTED` - The user who started the job has requested that it be stopped.
         * + `STOPPED` - The job has been stopped.
         */
        public var jobStatus: aws.sdk.kotlin.services.translate.model.JobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.translate.model.StartTextTranslationJobResponse) : this() {
            this.jobId = x.jobId
            this.jobStatus = x.jobStatus
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy