commonMain.aws.sdk.kotlin.services.translate.model.JobDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translate-jvm Show documentation
Show all versions of translate-jvm Show documentation
The AWS SDK for Kotlin client for Translate
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.translate.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The number of documents successfully and unsuccessfully processed during a translation job.
*/
public class JobDetails private constructor(builder: Builder) {
/**
* The number of documents that could not be processed during a translation job.
*/
public val documentsWithErrorsCount: kotlin.Int? = builder.documentsWithErrorsCount
/**
* The number of documents used as input in a translation job.
*/
public val inputDocumentsCount: kotlin.Int? = builder.inputDocumentsCount
/**
* The number of documents successfully processed during a translation job.
*/
public val translatedDocumentsCount: kotlin.Int? = builder.translatedDocumentsCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.translate.model.JobDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobDetails(")
append("documentsWithErrorsCount=$documentsWithErrorsCount,")
append("inputDocumentsCount=$inputDocumentsCount,")
append("translatedDocumentsCount=$translatedDocumentsCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentsWithErrorsCount ?: 0
result = 31 * result + (inputDocumentsCount ?: 0)
result = 31 * result + (translatedDocumentsCount ?: 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 JobDetails
if (documentsWithErrorsCount != other.documentsWithErrorsCount) return false
if (inputDocumentsCount != other.inputDocumentsCount) return false
if (translatedDocumentsCount != other.translatedDocumentsCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.translate.model.JobDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of documents that could not be processed during a translation job.
*/
public var documentsWithErrorsCount: kotlin.Int? = null
/**
* The number of documents used as input in a translation job.
*/
public var inputDocumentsCount: kotlin.Int? = null
/**
* The number of documents successfully processed during a translation job.
*/
public var translatedDocumentsCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.translate.model.JobDetails) : this() {
this.documentsWithErrorsCount = x.documentsWithErrorsCount
this.inputDocumentsCount = x.inputDocumentsCount
this.translatedDocumentsCount = x.translatedDocumentsCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.translate.model.JobDetails = JobDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}