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

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

public class GetDataQualityRulesetEvaluationRunResponse private constructor(builder: Builder) {
    /**
     * A map of reference strings to additional data sources you can specify for an evaluation run.
     */
    public val additionalDataSources: Map? = builder.additionalDataSources
    /**
     * Additional run options you can specify for an evaluation run.
     */
    public val additionalRunOptions: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions? = builder.additionalRunOptions
    /**
     * The date and time when this run was completed.
     */
    public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
    /**
     * The data source (an Glue table) associated with this evaluation run.
     */
    public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
    /**
     * The error strings that are associated with the run.
     */
    public val errorString: kotlin.String? = builder.errorString
    /**
     * The amount of time (in seconds) that the run consumed resources.
     */
    public val executionTime: kotlin.Int = builder.executionTime
    /**
     * A timestamp. The last point in time when this data quality rule recommendation run was modified.
     */
    public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
    /**
     * The number of `G.1X` workers to be used in the run. The default is 5.
     */
    public val numberOfWorkers: kotlin.Int? = builder.numberOfWorkers
    /**
     * A list of result IDs for the data quality results for the run.
     */
    public val resultIds: List? = builder.resultIds
    /**
     * An IAM role supplied to encrypt the results of the run.
     */
    public val role: kotlin.String? = builder.role
    /**
     * A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.
     */
    public val rulesetNames: List? = builder.rulesetNames
    /**
     * The unique run identifier associated with this run.
     */
    public val runId: kotlin.String? = builder.runId
    /**
     * The date and time when this 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
    /**
     * The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
     */
    public val timeout: kotlin.Int? = builder.timeout

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

    override fun toString(): kotlin.String = buildString {
        append("GetDataQualityRulesetEvaluationRunResponse(")
        append("additionalDataSources=$additionalDataSources,")
        append("additionalRunOptions=$additionalRunOptions,")
        append("completedOn=$completedOn,")
        append("dataSource=$dataSource,")
        append("errorString=$errorString,")
        append("executionTime=$executionTime,")
        append("lastModifiedOn=$lastModifiedOn,")
        append("numberOfWorkers=$numberOfWorkers,")
        append("resultIds=$resultIds,")
        append("role=$role,")
        append("rulesetNames=$rulesetNames,")
        append("runId=$runId,")
        append("startedOn=$startedOn,")
        append("status=$status,")
        append("timeout=$timeout")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = additionalDataSources?.hashCode() ?: 0
        result = 31 * result + (additionalRunOptions?.hashCode() ?: 0)
        result = 31 * result + (completedOn?.hashCode() ?: 0)
        result = 31 * result + (dataSource?.hashCode() ?: 0)
        result = 31 * result + (errorString?.hashCode() ?: 0)
        result = 31 * result + (executionTime)
        result = 31 * result + (lastModifiedOn?.hashCode() ?: 0)
        result = 31 * result + (numberOfWorkers ?: 0)
        result = 31 * result + (resultIds?.hashCode() ?: 0)
        result = 31 * result + (role?.hashCode() ?: 0)
        result = 31 * result + (rulesetNames?.hashCode() ?: 0)
        result = 31 * result + (runId?.hashCode() ?: 0)
        result = 31 * result + (startedOn?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (timeout ?: 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 GetDataQualityRulesetEvaluationRunResponse

        if (additionalDataSources != other.additionalDataSources) return false
        if (additionalRunOptions != other.additionalRunOptions) return false
        if (completedOn != other.completedOn) return false
        if (dataSource != other.dataSource) return false
        if (errorString != other.errorString) return false
        if (executionTime != other.executionTime) return false
        if (lastModifiedOn != other.lastModifiedOn) return false
        if (numberOfWorkers != other.numberOfWorkers) return false
        if (resultIds != other.resultIds) return false
        if (role != other.role) return false
        if (rulesetNames != other.rulesetNames) return false
        if (runId != other.runId) return false
        if (startedOn != other.startedOn) return false
        if (status != other.status) return false
        if (timeout != other.timeout) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A map of reference strings to additional data sources you can specify for an evaluation run.
         */
        public var additionalDataSources: Map? = null
        /**
         * Additional run options you can specify for an evaluation run.
         */
        public var additionalRunOptions: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions? = null
        /**
         * The date and time when this run was completed.
         */
        public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The data source (an Glue table) associated with this evaluation run.
         */
        public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
        /**
         * The error strings that are associated with the run.
         */
        public var errorString: kotlin.String? = null
        /**
         * The amount of time (in seconds) that the run consumed resources.
         */
        public var executionTime: kotlin.Int = 0
        /**
         * A timestamp. The last point in time when this data quality rule recommendation run was modified.
         */
        public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The number of `G.1X` workers to be used in the run. The default is 5.
         */
        public var numberOfWorkers: kotlin.Int? = null
        /**
         * A list of result IDs for the data quality results for the run.
         */
        public var resultIds: List? = null
        /**
         * An IAM role supplied to encrypt the results of the run.
         */
        public var role: kotlin.String? = null
        /**
         * A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.
         */
        public var rulesetNames: List? = null
        /**
         * The unique run identifier associated with this run.
         */
        public var runId: kotlin.String? = null
        /**
         * The date and time when this 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
        /**
         * The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
         */
        public var timeout: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetEvaluationRunResponse) : this() {
            this.additionalDataSources = x.additionalDataSources
            this.additionalRunOptions = x.additionalRunOptions
            this.completedOn = x.completedOn
            this.dataSource = x.dataSource
            this.errorString = x.errorString
            this.executionTime = x.executionTime
            this.lastModifiedOn = x.lastModifiedOn
            this.numberOfWorkers = x.numberOfWorkers
            this.resultIds = x.resultIds
            this.role = x.role
            this.rulesetNames = x.rulesetNames
            this.runId = x.runId
            this.startedOn = x.startedOn
            this.status = x.status
            this.timeout = x.timeout
        }

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

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

        /**
         * 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