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

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

The 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 a data quality result.
 */
public class DataQualityResultDescription private constructor(builder: Builder) {
    /**
     * The table name associated with the data quality result.
     */
    public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
    /**
     * The job name associated with the data quality result.
     */
    public val jobName: kotlin.String? = builder.jobName
    /**
     * The job run ID associated with the data quality result.
     */
    public val jobRunId: kotlin.String? = builder.jobRunId
    /**
     * The unique result ID for this data quality result.
     */
    public val resultId: kotlin.String? = builder.resultId
    /**
     * The time that the run started for this data quality result.
     */
    public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn

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

    override fun toString(): kotlin.String = buildString {
        append("DataQualityResultDescription(")
        append("dataSource=$dataSource,")
        append("jobName=$jobName,")
        append("jobRunId=$jobRunId,")
        append("resultId=$resultId,")
        append("startedOn=$startedOn")
        append(")")
    }

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

        if (dataSource != other.dataSource) return false
        if (jobName != other.jobName) return false
        if (jobRunId != other.jobRunId) return false
        if (resultId != other.resultId) return false
        if (startedOn != other.startedOn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The table name associated with the data quality result.
         */
        public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
        /**
         * The job name associated with the data quality result.
         */
        public var jobName: kotlin.String? = null
        /**
         * The job run ID associated with the data quality result.
         */
        public var jobRunId: kotlin.String? = null
        /**
         * The unique result ID for this data quality result.
         */
        public var resultId: kotlin.String? = null
        /**
         * The time that the run started for this data quality result.
         */
        public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.DataQualityResultDescription) : this() {
            this.dataSource = x.dataSource
            this.jobName = x.jobName
            this.jobRunId = x.jobRunId
            this.resultId = x.resultId
            this.startedOn = x.startedOn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.DataQualityResultDescription = DataQualityResultDescription(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