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

commonMain.aws.sdk.kotlin.services.glue.model.IcebergTarget.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 an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.
 */
public class IcebergTarget private constructor(builder: Builder) {
    /**
     * The name of the connection to use to connect to the Iceberg target.
     */
    public val connectionName: kotlin.String? = builder.connectionName
    /**
     * 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 maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.
     */
    public val maximumTraversalDepth: kotlin.Int? = builder.maximumTraversalDepth
    /**
     * One or more Amazon S3 paths that contains Iceberg metadata folders as `s3://bucket/prefix`.
     */
    public val paths: List? = builder.paths

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

    override fun toString(): kotlin.String = buildString {
        append("IcebergTarget(")
        append("connectionName=$connectionName,")
        append("exclusions=$exclusions,")
        append("maximumTraversalDepth=$maximumTraversalDepth,")
        append("paths=$paths")
        append(")")
    }

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

        if (connectionName != other.connectionName) return false
        if (exclusions != other.exclusions) return false
        if (maximumTraversalDepth != other.maximumTraversalDepth) return false
        if (paths != other.paths) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the connection to use to connect to the Iceberg target.
         */
        public var connectionName: kotlin.String? = 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 maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.
         */
        public var maximumTraversalDepth: kotlin.Int? = null
        /**
         * One or more Amazon S3 paths that contains Iceberg metadata folders as `s3://bucket/prefix`.
         */
        public var paths: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.IcebergTarget) : this() {
            this.connectionName = x.connectionName
            this.exclusions = x.exclusions
            this.maximumTraversalDepth = x.maximumTraversalDepth
            this.paths = x.paths
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy