
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* The metadata transfer job's progress.
*/
public class MetadataTransferJobProgress private constructor(builder: Builder) {
/**
* The failed count.
*/
public val failedCount: kotlin.Int? = builder.failedCount
/**
* The skipped count.
*/
public val skippedCount: kotlin.Int? = builder.skippedCount
/**
* The succeeded count.
*/
public val succeededCount: kotlin.Int? = builder.succeededCount
/**
* The total count. [of what]
*/
public val totalCount: kotlin.Int? = builder.totalCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MetadataTransferJobProgress(")
append("failedCount=$failedCount,")
append("skippedCount=$skippedCount,")
append("succeededCount=$succeededCount,")
append("totalCount=$totalCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failedCount ?: 0
result = 31 * result + (skippedCount ?: 0)
result = 31 * result + (succeededCount ?: 0)
result = 31 * result + (totalCount ?: 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 MetadataTransferJobProgress
if (failedCount != other.failedCount) return false
if (skippedCount != other.skippedCount) return false
if (succeededCount != other.succeededCount) return false
if (totalCount != other.totalCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress = Builder(this).apply(block).build()
public class Builder {
/**
* The failed count.
*/
public var failedCount: kotlin.Int? = null
/**
* The skipped count.
*/
public var skippedCount: kotlin.Int? = null
/**
* The succeeded count.
*/
public var succeededCount: kotlin.Int? = null
/**
* The total count. [of what]
*/
public var totalCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress) : this() {
this.failedCount = x.failedCount
this.skippedCount = x.skippedCount
this.succeededCount = x.succeededCount
this.totalCount = x.totalCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress = MetadataTransferJobProgress(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy