
commonMain.aws.sdk.kotlin.services.voiceid.model.JobProgress.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.voiceid.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Indicates the completion progress for a batch job.
*/
public class JobProgress private constructor(builder: Builder) {
/**
* Shows the completed percentage of enrollment or registration requests listed in the input file.
*/
public val percentComplete: kotlin.Int? = builder.percentComplete
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.JobProgress = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobProgress(")
append("percentComplete=$percentComplete")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = percentComplete ?: 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 JobProgress
if (percentComplete != other.percentComplete) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.JobProgress = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Shows the completed percentage of enrollment or registration requests listed in the input file.
*/
public var percentComplete: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.JobProgress) : this() {
this.percentComplete = x.percentComplete
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.voiceid.model.JobProgress = JobProgress(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy