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

commonMain.aws.sdk.kotlin.services.glue.model.DataQualityRulesetEvaluationRunDescription.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

/**
 * Describes the result of a data quality ruleset evaluation run.
 */
public class DataQualityRulesetEvaluationRunDescription private constructor(builder: Builder) {
    /**
     * The data source (an Glue table) associated with the run.
     */
    public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
    /**
     * The unique run identifier associated with this run.
     */
    public val runId: kotlin.String? = builder.runId
    /**
     * The date and time when the run started.
     */
    public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
    /**
     * The status for this run.
     */
    public val status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("DataQualityRulesetEvaluationRunDescription(")
        append("dataSource=$dataSource,")
        append("runId=$runId,")
        append("startedOn=$startedOn,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataSource?.hashCode() ?: 0
        result = 31 * result + (runId?.hashCode() ?: 0)
        result = 31 * result + (startedOn?.hashCode() ?: 0)
        result = 31 * result + (status?.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 DataQualityRulesetEvaluationRunDescription

        if (dataSource != other.dataSource) return false
        if (runId != other.runId) return false
        if (startedOn != other.startedOn) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The data source (an Glue table) associated with the run.
         */
        public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
        /**
         * The unique run identifier associated with this run.
         */
        public var runId: kotlin.String? = null
        /**
         * The date and time when the run started.
         */
        public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status for this run.
         */
        public var status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.DataQualityRulesetEvaluationRunDescription) : this() {
            this.dataSource = x.dataSource
            this.runId = x.runId
            this.startedOn = x.startedOn
            this.status = x.status
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy