commonMain.aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTask.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Details about a batch load task.
*/
public class BatchLoadTask private constructor(builder: Builder) {
/**
* The time when the Timestream batch load task was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* Database name for the database into which a batch load task loads data.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The time when the Timestream batch load task was last updated.
*/
public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
/**
*
*/
public val resumableUntil: aws.smithy.kotlin.runtime.time.Instant? = builder.resumableUntil
/**
* Table name for the table into which a batch load task loads data.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* The ID of the batch load task.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* Status of the batch load task.
*/
public val taskStatus: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadStatus? = builder.taskStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTask = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchLoadTask(")
append("creationTime=$creationTime,")
append("databaseName=$databaseName,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("resumableUntil=$resumableUntil,")
append("tableName=$tableName,")
append("taskId=$taskId,")
append("taskStatus=$taskStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (resumableUntil?.hashCode() ?: 0)
result = 31 * result + (tableName?.hashCode() ?: 0)
result = 31 * result + (taskId?.hashCode() ?: 0)
result = 31 * result + (taskStatus?.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 BatchLoadTask
if (creationTime != other.creationTime) return false
if (databaseName != other.databaseName) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (resumableUntil != other.resumableUntil) return false
if (tableName != other.tableName) return false
if (taskId != other.taskId) return false
if (taskStatus != other.taskStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTask = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time when the Timestream batch load task was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Database name for the database into which a batch load task loads data.
*/
public var databaseName: kotlin.String? = null
/**
* The time when the Timestream batch load task was last updated.
*/
public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
*
*/
public var resumableUntil: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Table name for the table into which a batch load task loads data.
*/
public var tableName: kotlin.String? = null
/**
* The ID of the batch load task.
*/
public var taskId: kotlin.String? = null
/**
* Status of the batch load task.
*/
public var taskStatus: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTask) : this() {
this.creationTime = x.creationTime
this.databaseName = x.databaseName
this.lastUpdatedTime = x.lastUpdatedTime
this.resumableUntil = x.resumableUntil
this.tableName = x.tableName
this.taskId = x.taskId
this.taskStatus = x.taskStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTask = BatchLoadTask(this)
internal fun correctErrors(): Builder {
return this
}
}
}