commonMain.aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamwrite-jvm Show documentation
Show all versions of timestreamwrite-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Write
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamwrite.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details about the progress of a batch load task.
*/
public class BatchLoadProgressReport private constructor(builder: Builder) {
/**
*
*/
public val bytesMetered: kotlin.Long = builder.bytesMetered
/**
*
*/
public val fileFailures: kotlin.Long = builder.fileFailures
/**
*
*/
public val parseFailures: kotlin.Long = builder.parseFailures
/**
*
*/
public val recordIngestionFailures: kotlin.Long = builder.recordIngestionFailures
/**
*
*/
public val recordsIngested: kotlin.Long = builder.recordsIngested
/**
*
*/
public val recordsProcessed: kotlin.Long = builder.recordsProcessed
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchLoadProgressReport(")
append("bytesMetered=$bytesMetered,")
append("fileFailures=$fileFailures,")
append("parseFailures=$parseFailures,")
append("recordIngestionFailures=$recordIngestionFailures,")
append("recordsIngested=$recordsIngested,")
append("recordsProcessed=$recordsProcessed")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bytesMetered.hashCode()
result = 31 * result + (fileFailures.hashCode())
result = 31 * result + (parseFailures.hashCode())
result = 31 * result + (recordIngestionFailures.hashCode())
result = 31 * result + (recordsIngested.hashCode())
result = 31 * result + (recordsProcessed.hashCode())
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 BatchLoadProgressReport
if (bytesMetered != other.bytesMetered) return false
if (fileFailures != other.fileFailures) return false
if (parseFailures != other.parseFailures) return false
if (recordIngestionFailures != other.recordIngestionFailures) return false
if (recordsIngested != other.recordsIngested) return false
if (recordsProcessed != other.recordsProcessed) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
*
*/
public var bytesMetered: kotlin.Long = 0L
/**
*
*/
public var fileFailures: kotlin.Long = 0L
/**
*
*/
public var parseFailures: kotlin.Long = 0L
/**
*
*/
public var recordIngestionFailures: kotlin.Long = 0L
/**
*
*/
public var recordsIngested: kotlin.Long = 0L
/**
*
*/
public var recordsProcessed: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport) : this() {
this.bytesMetered = x.bytesMetered
this.fileFailures = x.fileFailures
this.parseFailures = x.parseFailures
this.recordIngestionFailures = x.recordIngestionFailures
this.recordsIngested = x.recordsIngested
this.recordsProcessed = x.recordsProcessed
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport = BatchLoadProgressReport(this)
internal fun correctErrors(): Builder {
return this
}
}
}