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

commonMain.aws.sdk.kotlin.services.glue.model.DeltaTarget.kt Maven / Gradle / Ivy

The 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 a Delta data store to crawl one or more Delta tables.
 */
public class DeltaTarget private constructor(builder: Builder) {
    /**
     * The name of the connection to use to connect to the Delta table target.
     */
    public val connectionName: kotlin.String? = builder.connectionName
    /**
     * Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.
     */
    public val createNativeDeltaTable: kotlin.Boolean? = builder.createNativeDeltaTable
    /**
     * A list of the Amazon S3 paths to the Delta tables.
     */
    public val deltaTables: List? = builder.deltaTables
    /**
     * Specifies whether to write the manifest files to the Delta table path.
     */
    public val writeManifest: kotlin.Boolean? = builder.writeManifest

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

    override fun toString(): kotlin.String = buildString {
        append("DeltaTarget(")
        append("connectionName=$connectionName,")
        append("createNativeDeltaTable=$createNativeDeltaTable,")
        append("deltaTables=$deltaTables,")
        append("writeManifest=$writeManifest")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionName?.hashCode() ?: 0
        result = 31 * result + (createNativeDeltaTable?.hashCode() ?: 0)
        result = 31 * result + (deltaTables?.hashCode() ?: 0)
        result = 31 * result + (writeManifest?.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 DeltaTarget

        if (connectionName != other.connectionName) return false
        if (createNativeDeltaTable != other.createNativeDeltaTable) return false
        if (deltaTables != other.deltaTables) return false
        if (writeManifest != other.writeManifest) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the connection to use to connect to the Delta table target.
         */
        public var connectionName: kotlin.String? = null
        /**
         * Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.
         */
        public var createNativeDeltaTable: kotlin.Boolean? = null
        /**
         * A list of the Amazon S3 paths to the Delta tables.
         */
        public var deltaTables: List? = null
        /**
         * Specifies whether to write the manifest files to the Delta table path.
         */
        public var writeManifest: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.DeltaTarget) : this() {
            this.connectionName = x.connectionName
            this.createNativeDeltaTable = x.createNativeDeltaTable
            this.deltaTables = x.deltaTables
            this.writeManifest = x.writeManifest
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy