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

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



/**
 * Specifies a JDBC data store to crawl.
 */
public class JdbcTarget private constructor(builder: Builder) {
    /**
     * The name of the connection to use to connect to the JDBC target.
     */
    public val connectionName: kotlin.String? = builder.connectionName
    /**
     * Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata in table responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     *
     * If you do not need additional metadata, keep the field empty.
     */
    public val enableAdditionalMetadata: List? = builder.enableAdditionalMetadata
    /**
     * A list of glob patterns used to exclude from the crawl. For more information, see [Catalog Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html).
     */
    public val exclusions: List? = builder.exclusions
    /**
     * The path of the JDBC target.
     */
    public val path: kotlin.String? = builder.path

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

    override fun toString(): kotlin.String = buildString {
        append("JdbcTarget(")
        append("connectionName=$connectionName,")
        append("enableAdditionalMetadata=$enableAdditionalMetadata,")
        append("exclusions=$exclusions,")
        append("path=$path")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionName?.hashCode() ?: 0
        result = 31 * result + (enableAdditionalMetadata?.hashCode() ?: 0)
        result = 31 * result + (exclusions?.hashCode() ?: 0)
        result = 31 * result + (path?.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 JdbcTarget

        if (connectionName != other.connectionName) return false
        if (enableAdditionalMetadata != other.enableAdditionalMetadata) return false
        if (exclusions != other.exclusions) return false
        if (path != other.path) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the connection to use to connect to the JDBC target.
         */
        public var connectionName: kotlin.String? = null
        /**
         * Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata in table responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
         *
         * If you do not need additional metadata, keep the field empty.
         */
        public var enableAdditionalMetadata: List? = null
        /**
         * A list of glob patterns used to exclude from the crawl. For more information, see [Catalog Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html).
         */
        public var exclusions: List? = null
        /**
         * The path of the JDBC target.
         */
        public var path: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.JdbcTarget) : this() {
            this.connectionName = x.connectionName
            this.enableAdditionalMetadata = x.enableAdditionalMetadata
            this.exclusions = x.exclusions
            this.path = x.path
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy