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

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

/**
 * Specifies your data quality evaluation criteria.
 */
public class EvaluateDataQualityMultiFrame private constructor(builder: Builder) {
    /**
     * The aliases of all data sources except primary.
     */
    public val additionalDataSources: Map? = builder.additionalDataSources
    /**
     * Options to configure runtime behavior of the transform.
     */
    public val additionalOptions: Map? = builder.additionalOptions
    /**
     * The inputs of your data quality evaluation. The first input in this list is the primary data source.
     */
    public val inputs: List = requireNotNull(builder.inputs) { "A non-null value must be provided for inputs" }
    /**
     * The name of the data quality evaluation.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * Options to configure how your results are published.
     */
    public val publishingOptions: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions? = builder.publishingOptions
    /**
     * The ruleset for your data quality evaluation.
     */
    public val ruleset: kotlin.String = requireNotNull(builder.ruleset) { "A non-null value must be provided for ruleset" }
    /**
     * Options to configure how your job will stop if your data quality evaluation fails.
     */
    public val stopJobOnFailureOptions: aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions? = builder.stopJobOnFailureOptions

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

    override fun toString(): kotlin.String = buildString {
        append("EvaluateDataQualityMultiFrame(")
        append("additionalDataSources=$additionalDataSources,")
        append("additionalOptions=$additionalOptions,")
        append("inputs=$inputs,")
        append("name=$name,")
        append("publishingOptions=$publishingOptions,")
        append("ruleset=$ruleset,")
        append("stopJobOnFailureOptions=$stopJobOnFailureOptions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = additionalDataSources?.hashCode() ?: 0
        result = 31 * result + (additionalOptions?.hashCode() ?: 0)
        result = 31 * result + (inputs.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (publishingOptions?.hashCode() ?: 0)
        result = 31 * result + (ruleset.hashCode())
        result = 31 * result + (stopJobOnFailureOptions?.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 EvaluateDataQualityMultiFrame

        if (additionalDataSources != other.additionalDataSources) return false
        if (additionalOptions != other.additionalOptions) return false
        if (inputs != other.inputs) return false
        if (name != other.name) return false
        if (publishingOptions != other.publishingOptions) return false
        if (ruleset != other.ruleset) return false
        if (stopJobOnFailureOptions != other.stopJobOnFailureOptions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The aliases of all data sources except primary.
         */
        public var additionalDataSources: Map? = null
        /**
         * Options to configure runtime behavior of the transform.
         */
        public var additionalOptions: Map? = null
        /**
         * The inputs of your data quality evaluation. The first input in this list is the primary data source.
         */
        public var inputs: List? = null
        /**
         * The name of the data quality evaluation.
         */
        public var name: kotlin.String? = null
        /**
         * Options to configure how your results are published.
         */
        public var publishingOptions: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions? = null
        /**
         * The ruleset for your data quality evaluation.
         */
        public var ruleset: kotlin.String? = null
        /**
         * Options to configure how your job will stop if your data quality evaluation fails.
         */
        public var stopJobOnFailureOptions: aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.EvaluateDataQualityMultiFrame) : this() {
            this.additionalDataSources = x.additionalDataSources
            this.additionalOptions = x.additionalOptions
            this.inputs = x.inputs
            this.name = x.name
            this.publishingOptions = x.publishingOptions
            this.ruleset = x.ruleset
            this.stopJobOnFailureOptions = x.stopJobOnFailureOptions
        }

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

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

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

        internal fun correctErrors(): Builder {
            if (inputs == null) inputs = emptyList()
            if (name == null) name = ""
            if (ruleset == null) ruleset = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy