All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTaskDescription.kt Maven / Gradle / Ivy

The newest version!
// 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 BatchLoadTaskDescription 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
    /**
     * Data model configuration for a batch load task. This contains details about where a data model for a batch load task is stored.
     */
    public val dataModelConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration? = builder.dataModelConfiguration
    /**
     * Configuration details about the data source for a batch load task.
     */
    public val dataSourceConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration? = builder.dataSourceConfiguration
    /**
     *
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * The time when the Timestream batch load task was last updated.
     */
    public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     *
     */
    public val progressReport: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport? = builder.progressReport
    /**
     *
     */
    public val recordVersion: kotlin.Long = builder.recordVersion
    /**
     * Report configuration for a batch load task. This contains details about where error reports are stored.
     */
    public val reportConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration? = builder.reportConfiguration
    /**
     *
     */
    public val resumableUntil: aws.smithy.kotlin.runtime.time.Instant? = builder.resumableUntil
    /**
     *
     */
    public val targetDatabaseName: kotlin.String? = builder.targetDatabaseName
    /**
     *
     */
    public val targetTableName: kotlin.String? = builder.targetTableName
    /**
     * 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.BatchLoadTaskDescription = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BatchLoadTaskDescription(")
        append("creationTime=$creationTime,")
        append("dataModelConfiguration=$dataModelConfiguration,")
        append("dataSourceConfiguration=$dataSourceConfiguration,")
        append("errorMessage=$errorMessage,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("progressReport=$progressReport,")
        append("recordVersion=$recordVersion,")
        append("reportConfiguration=$reportConfiguration,")
        append("resumableUntil=$resumableUntil,")
        append("targetDatabaseName=$targetDatabaseName,")
        append("targetTableName=$targetTableName,")
        append("taskId=$taskId,")
        append("taskStatus=$taskStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (dataModelConfiguration?.hashCode() ?: 0)
        result = 31 * result + (dataSourceConfiguration?.hashCode() ?: 0)
        result = 31 * result + (errorMessage?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (progressReport?.hashCode() ?: 0)
        result = 31 * result + (recordVersion.hashCode())
        result = 31 * result + (reportConfiguration?.hashCode() ?: 0)
        result = 31 * result + (resumableUntil?.hashCode() ?: 0)
        result = 31 * result + (targetDatabaseName?.hashCode() ?: 0)
        result = 31 * result + (targetTableName?.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 BatchLoadTaskDescription

        if (creationTime != other.creationTime) return false
        if (dataModelConfiguration != other.dataModelConfiguration) return false
        if (dataSourceConfiguration != other.dataSourceConfiguration) return false
        if (errorMessage != other.errorMessage) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (progressReport != other.progressReport) return false
        if (recordVersion != other.recordVersion) return false
        if (reportConfiguration != other.reportConfiguration) return false
        if (resumableUntil != other.resumableUntil) return false
        if (targetDatabaseName != other.targetDatabaseName) return false
        if (targetTableName != other.targetTableName) 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.BatchLoadTaskDescription = 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
        /**
         * Data model configuration for a batch load task. This contains details about where a data model for a batch load task is stored.
         */
        public var dataModelConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration? = null
        /**
         * Configuration details about the data source for a batch load task.
         */
        public var dataSourceConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration? = null
        /**
         *
         */
        public var errorMessage: 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 progressReport: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport? = null
        /**
         *
         */
        public var recordVersion: kotlin.Long = 0L
        /**
         * Report configuration for a batch load task. This contains details about where error reports are stored.
         */
        public var reportConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration? = null
        /**
         *
         */
        public var resumableUntil: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         *
         */
        public var targetDatabaseName: kotlin.String? = null
        /**
         *
         */
        public var targetTableName: 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.BatchLoadTaskDescription) : this() {
            this.creationTime = x.creationTime
            this.dataModelConfiguration = x.dataModelConfiguration
            this.dataSourceConfiguration = x.dataSourceConfiguration
            this.errorMessage = x.errorMessage
            this.lastUpdatedTime = x.lastUpdatedTime
            this.progressReport = x.progressReport
            this.recordVersion = x.recordVersion
            this.reportConfiguration = x.reportConfiguration
            this.resumableUntil = x.resumableUntil
            this.targetDatabaseName = x.targetDatabaseName
            this.targetTableName = x.targetTableName
            this.taskId = x.taskId
            this.taskStatus = x.taskStatus
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadTaskDescription = BatchLoadTaskDescription(this)

        /**
         * construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration] inside the given [block]
         */
        public fun dataModelConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration.Builder.() -> kotlin.Unit) {
            this.dataModelConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration] inside the given [block]
         */
        public fun dataSourceConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration.Builder.() -> kotlin.Unit) {
            this.dataSourceConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport] inside the given [block]
         */
        public fun progressReport(block: aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport.Builder.() -> kotlin.Unit) {
            this.progressReport = aws.sdk.kotlin.services.timestreamwrite.model.BatchLoadProgressReport.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration] inside the given [block]
         */
        public fun reportConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration.Builder.() -> kotlin.Unit) {
            this.reportConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy