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

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

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

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

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

/**
 * Describes a data quality result.
 */
public class DataQualityResult private constructor(builder: Builder) {
    /**
     * The date and time when this data quality run completed.
     */
    public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
    /**
     * The table associated with the data quality result, if any.
     */
    public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
    /**
     * In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the `evaluationContext` can differentiate the nodes.
     */
    public val evaluationContext: kotlin.String? = builder.evaluationContext
    /**
     * The job name associated with the data quality result, if any.
     */
    public val jobName: kotlin.String? = builder.jobName
    /**
     * The job run ID associated with the data quality result, if any.
     */
    public val jobRunId: kotlin.String? = builder.jobRunId
    /**
     * A unique result ID for the data quality result.
     */
    public val resultId: kotlin.String? = builder.resultId
    /**
     * A list of `DataQualityRuleResult` objects representing the results for each rule.
     */
    public val ruleResults: List? = builder.ruleResults
    /**
     * The unique run ID for the ruleset evaluation for this data quality result.
     */
    public val rulesetEvaluationRunId: kotlin.String? = builder.rulesetEvaluationRunId
    /**
     * The name of the ruleset associated with the data quality result.
     */
    public val rulesetName: kotlin.String? = builder.rulesetName
    /**
     * An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
     */
    public val score: kotlin.Double? = builder.score
    /**
     * The date and time when this data quality run started.
     */
    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.DataQualityResult = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DataQualityResult(")
        append("completedOn=$completedOn,")
        append("dataSource=$dataSource,")
        append("evaluationContext=$evaluationContext,")
        append("jobName=$jobName,")
        append("jobRunId=$jobRunId,")
        append("resultId=$resultId,")
        append("ruleResults=$ruleResults,")
        append("rulesetEvaluationRunId=$rulesetEvaluationRunId,")
        append("rulesetName=$rulesetName,")
        append("score=$score,")
        append("startedOn=$startedOn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = completedOn?.hashCode() ?: 0
        result = 31 * result + (dataSource?.hashCode() ?: 0)
        result = 31 * result + (evaluationContext?.hashCode() ?: 0)
        result = 31 * result + (jobName?.hashCode() ?: 0)
        result = 31 * result + (jobRunId?.hashCode() ?: 0)
        result = 31 * result + (resultId?.hashCode() ?: 0)
        result = 31 * result + (ruleResults?.hashCode() ?: 0)
        result = 31 * result + (rulesetEvaluationRunId?.hashCode() ?: 0)
        result = 31 * result + (rulesetName?.hashCode() ?: 0)
        result = 31 * result + (score?.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 DataQualityResult

        if (completedOn != other.completedOn) return false
        if (dataSource != other.dataSource) return false
        if (evaluationContext != other.evaluationContext) return false
        if (jobName != other.jobName) return false
        if (jobRunId != other.jobRunId) return false
        if (resultId != other.resultId) return false
        if (ruleResults != other.ruleResults) return false
        if (rulesetEvaluationRunId != other.rulesetEvaluationRunId) return false
        if (rulesetName != other.rulesetName) return false
        if (score != other.score) return false
        if (startedOn != other.startedOn) return false

        return true
    }

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

    public class Builder {
        /**
         * The date and time when this data quality run completed.
         */
        public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The table associated with the data quality result, if any.
         */
        public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
        /**
         * In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the `evaluationContext` can differentiate the nodes.
         */
        public var evaluationContext: kotlin.String? = null
        /**
         * The job name associated with the data quality result, if any.
         */
        public var jobName: kotlin.String? = null
        /**
         * The job run ID associated with the data quality result, if any.
         */
        public var jobRunId: kotlin.String? = null
        /**
         * A unique result ID for the data quality result.
         */
        public var resultId: kotlin.String? = null
        /**
         * A list of `DataQualityRuleResult` objects representing the results for each rule.
         */
        public var ruleResults: List? = null
        /**
         * The unique run ID for the ruleset evaluation for this data quality result.
         */
        public var rulesetEvaluationRunId: kotlin.String? = null
        /**
         * The name of the ruleset associated with the data quality result.
         */
        public var rulesetName: kotlin.String? = null
        /**
         * An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
         */
        public var score: kotlin.Double? = null
        /**
         * The date and time when this data quality run started.
         */
        public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.DataQualityResult) : this() {
            this.completedOn = x.completedOn
            this.dataSource = x.dataSource
            this.evaluationContext = x.evaluationContext
            this.jobName = x.jobName
            this.jobRunId = x.jobRunId
            this.resultId = x.resultId
            this.ruleResults = x.ruleResults
            this.rulesetEvaluationRunId = x.rulesetEvaluationRunId
            this.rulesetName = x.rulesetName
            this.score = x.score
            this.startedOn = x.startedOn
        }

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