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

commonMain.aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationInput.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.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The configuration details of the Amazon Web Services Glue data source.
 */
public class GlueRunConfigurationInput private constructor(builder: Builder) {
    /**
     * Specifies whether to automatically import data quality metrics as part of the data source run.
     */
    public val autoImportDataQualityResult: kotlin.Boolean? = builder.autoImportDataQualityResult
    /**
     * The data access role included in the configuration details of the Amazon Web Services Glue data source.
     */
    public val dataAccessRole: kotlin.String? = builder.dataAccessRole
    /**
     * The relational filter configurations included in the configuration details of the Amazon Web Services Glue data source.
     */
    public val relationalFilterConfigurations: List = requireNotNull(builder.relationalFilterConfigurations) { "A non-null value must be provided for relationalFilterConfigurations" }

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

    override fun toString(): kotlin.String = buildString {
        append("GlueRunConfigurationInput(")
        append("autoImportDataQualityResult=$autoImportDataQualityResult,")
        append("dataAccessRole=$dataAccessRole,")
        append("relationalFilterConfigurations=$relationalFilterConfigurations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoImportDataQualityResult?.hashCode() ?: 0
        result = 31 * result + (dataAccessRole?.hashCode() ?: 0)
        result = 31 * result + (relationalFilterConfigurations.hashCode())
        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 GlueRunConfigurationInput

        if (autoImportDataQualityResult != other.autoImportDataQualityResult) return false
        if (dataAccessRole != other.dataAccessRole) return false
        if (relationalFilterConfigurations != other.relationalFilterConfigurations) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies whether to automatically import data quality metrics as part of the data source run.
         */
        public var autoImportDataQualityResult: kotlin.Boolean? = null
        /**
         * The data access role included in the configuration details of the Amazon Web Services Glue data source.
         */
        public var dataAccessRole: kotlin.String? = null
        /**
         * The relational filter configurations included in the configuration details of the Amazon Web Services Glue data source.
         */
        public var relationalFilterConfigurations: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationInput) : this() {
            this.autoImportDataQualityResult = x.autoImportDataQualityResult
            this.dataAccessRole = x.dataAccessRole
            this.relationalFilterConfigurations = x.relationalFilterConfigurations
        }

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

        internal fun correctErrors(): Builder {
            if (relationalFilterConfigurations == null) relationalFilterConfigurations = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy