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

commonMain.aws.sdk.kotlin.services.glue.model.ColumnStatisticsTaskRun.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The object that shows the details of the column stats run.
 */
public class ColumnStatisticsTaskRun private constructor(builder: Builder) {
    /**
     * The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.
     */
    public val catalogId: kotlin.String? = builder.catalogId
    /**
     * A list of the column names. If none is supplied, all column names for the table will be used by default.
     */
    public val columnNameList: List? = builder.columnNameList
    /**
     * The identifier for the particular column statistics task run.
     */
    public val columnStatisticsTaskRunId: kotlin.String? = builder.columnStatisticsTaskRunId
    /**
     * The time that this task was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The Amazon Web Services account ID.
     */
    public val customerId: kotlin.String? = builder.customerId
    /**
     * The database where the table resides.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * The calculated DPU usage in seconds for all autoscaled workers.
     */
    public val dpuSeconds: kotlin.Double = builder.dpuSeconds
    /**
     * The end time of the task.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The error message for the job.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * The last point in time when this task was modified.
     */
    public val lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdated
    /**
     * The number of workers used to generate column statistics. The job is preconfigured to autoscale up to 25 instances.
     */
    public val numberOfWorkers: kotlin.Int = builder.numberOfWorkers
    /**
     * The IAM role that the service assumes to generate statistics.
     */
    public val role: kotlin.String? = builder.role
    /**
     * The percentage of rows used to generate statistics. If none is supplied, the entire table will be used to generate stats.
     */
    public val sampleSize: kotlin.Double = builder.sampleSize
    /**
     * Name of the security configuration that is used to encrypt CloudWatch logs for the column stats task run.
     */
    public val securityConfiguration: kotlin.String? = builder.securityConfiguration
    /**
     * The start time of the task.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The status of the task run.
     */
    public val status: aws.sdk.kotlin.services.glue.model.ColumnStatisticsState? = builder.status
    /**
     * The name of the table for which column statistics is generated.
     */
    public val tableName: kotlin.String? = builder.tableName
    /**
     * The type of workers being used for generating stats. The default is `g.1x`.
     */
    public val workerType: kotlin.String? = builder.workerType

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ColumnStatisticsTaskRun = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ColumnStatisticsTaskRun(")
        append("catalogId=$catalogId,")
        append("columnNameList=$columnNameList,")
        append("columnStatisticsTaskRunId=$columnStatisticsTaskRunId,")
        append("creationTime=$creationTime,")
        append("customerId=$customerId,")
        append("databaseName=$databaseName,")
        append("dpuSeconds=$dpuSeconds,")
        append("endTime=$endTime,")
        append("errorMessage=$errorMessage,")
        append("lastUpdated=$lastUpdated,")
        append("numberOfWorkers=$numberOfWorkers,")
        append("role=$role,")
        append("sampleSize=$sampleSize,")
        append("securityConfiguration=$securityConfiguration,")
        append("startTime=$startTime,")
        append("status=$status,")
        append("tableName=$tableName,")
        append("workerType=$workerType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = catalogId?.hashCode() ?: 0
        result = 31 * result + (columnNameList?.hashCode() ?: 0)
        result = 31 * result + (columnStatisticsTaskRunId?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (customerId?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (dpuSeconds.hashCode())
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (errorMessage?.hashCode() ?: 0)
        result = 31 * result + (lastUpdated?.hashCode() ?: 0)
        result = 31 * result + (numberOfWorkers)
        result = 31 * result + (role?.hashCode() ?: 0)
        result = 31 * result + (sampleSize.hashCode())
        result = 31 * result + (securityConfiguration?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (tableName?.hashCode() ?: 0)
        result = 31 * result + (workerType?.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 ColumnStatisticsTaskRun

        if (catalogId != other.catalogId) return false
        if (columnNameList != other.columnNameList) return false
        if (columnStatisticsTaskRunId != other.columnStatisticsTaskRunId) return false
        if (creationTime != other.creationTime) return false
        if (customerId != other.customerId) return false
        if (databaseName != other.databaseName) return false
        if (!(dpuSeconds?.equals(other.dpuSeconds) ?: (other.dpuSeconds == null))) return false
        if (endTime != other.endTime) return false
        if (errorMessage != other.errorMessage) return false
        if (lastUpdated != other.lastUpdated) return false
        if (numberOfWorkers != other.numberOfWorkers) return false
        if (role != other.role) return false
        if (!(sampleSize?.equals(other.sampleSize) ?: (other.sampleSize == null))) return false
        if (securityConfiguration != other.securityConfiguration) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false
        if (tableName != other.tableName) return false
        if (workerType != other.workerType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ColumnStatisticsTaskRun = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.
         */
        public var catalogId: kotlin.String? = null
        /**
         * A list of the column names. If none is supplied, all column names for the table will be used by default.
         */
        public var columnNameList: List? = null
        /**
         * The identifier for the particular column statistics task run.
         */
        public var columnStatisticsTaskRunId: kotlin.String? = null
        /**
         * The time that this task was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Web Services account ID.
         */
        public var customerId: kotlin.String? = null
        /**
         * The database where the table resides.
         */
        public var databaseName: kotlin.String? = null
        /**
         * The calculated DPU usage in seconds for all autoscaled workers.
         */
        public var dpuSeconds: kotlin.Double = 0.0
        /**
         * The end time of the task.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The error message for the job.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * The last point in time when this task was modified.
         */
        public var lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The number of workers used to generate column statistics. The job is preconfigured to autoscale up to 25 instances.
         */
        public var numberOfWorkers: kotlin.Int = 0
        /**
         * The IAM role that the service assumes to generate statistics.
         */
        public var role: kotlin.String? = null
        /**
         * The percentage of rows used to generate statistics. If none is supplied, the entire table will be used to generate stats.
         */
        public var sampleSize: kotlin.Double = 0.0
        /**
         * Name of the security configuration that is used to encrypt CloudWatch logs for the column stats task run.
         */
        public var securityConfiguration: kotlin.String? = null
        /**
         * The start time of the task.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the task run.
         */
        public var status: aws.sdk.kotlin.services.glue.model.ColumnStatisticsState? = null
        /**
         * The name of the table for which column statistics is generated.
         */
        public var tableName: kotlin.String? = null
        /**
         * The type of workers being used for generating stats. The default is `g.1x`.
         */
        public var workerType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.ColumnStatisticsTaskRun) : this() {
            this.catalogId = x.catalogId
            this.columnNameList = x.columnNameList
            this.columnStatisticsTaskRunId = x.columnStatisticsTaskRunId
            this.creationTime = x.creationTime
            this.customerId = x.customerId
            this.databaseName = x.databaseName
            this.dpuSeconds = x.dpuSeconds
            this.endTime = x.endTime
            this.errorMessage = x.errorMessage
            this.lastUpdated = x.lastUpdated
            this.numberOfWorkers = x.numberOfWorkers
            this.role = x.role
            this.sampleSize = x.sampleSize
            this.securityConfiguration = x.securityConfiguration
            this.startTime = x.startTime
            this.status = x.status
            this.tableName = x.tableName
            this.workerType = x.workerType
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy