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

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

/**
 * Additional run options you can specify for an evaluation run.
 */
public class DataQualityEvaluationRunAdditionalRunOptions private constructor(builder: Builder) {
    /**
     * Whether or not to enable CloudWatch metrics.
     */
    public val cloudWatchMetricsEnabled: kotlin.Boolean? = builder.cloudWatchMetricsEnabled
    /**
     * Set the evaluation method for composite rules in the ruleset to ROW/COLUMN
     */
    public val compositeRuleEvaluationMethod: aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod? = builder.compositeRuleEvaluationMethod
    /**
     * Prefix for Amazon S3 to store results.
     */
    public val resultsS3Prefix: kotlin.String? = builder.resultsS3Prefix

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

    override fun toString(): kotlin.String = buildString {
        append("DataQualityEvaluationRunAdditionalRunOptions(")
        append("cloudWatchMetricsEnabled=$cloudWatchMetricsEnabled,")
        append("compositeRuleEvaluationMethod=$compositeRuleEvaluationMethod,")
        append("resultsS3Prefix=$resultsS3Prefix")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cloudWatchMetricsEnabled?.hashCode() ?: 0
        result = 31 * result + (compositeRuleEvaluationMethod?.hashCode() ?: 0)
        result = 31 * result + (resultsS3Prefix?.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 DataQualityEvaluationRunAdditionalRunOptions

        if (cloudWatchMetricsEnabled != other.cloudWatchMetricsEnabled) return false
        if (compositeRuleEvaluationMethod != other.compositeRuleEvaluationMethod) return false
        if (resultsS3Prefix != other.resultsS3Prefix) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Whether or not to enable CloudWatch metrics.
         */
        public var cloudWatchMetricsEnabled: kotlin.Boolean? = null
        /**
         * Set the evaluation method for composite rules in the ruleset to ROW/COLUMN
         */
        public var compositeRuleEvaluationMethod: aws.sdk.kotlin.services.glue.model.DqCompositeRuleEvaluationMethod? = null
        /**
         * Prefix for Amazon S3 to store results.
         */
        public var resultsS3Prefix: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions) : this() {
            this.cloudWatchMetricsEnabled = x.cloudWatchMetricsEnabled
            this.compositeRuleEvaluationMethod = x.compositeRuleEvaluationMethod
            this.resultsS3Prefix = x.resultsS3Prefix
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy