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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

public class BatchDeleteTableRequest private constructor(builder: Builder) {
    /**
     * The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
     */
    public val catalogId: kotlin.String? = builder.catalogId
    /**
     * The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * A list of the table to delete.
     */
    public val tablesToDelete: List? = builder.tablesToDelete
    /**
     * The transaction ID at which to delete the table contents.
     */
    public val transactionId: kotlin.String? = builder.transactionId

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

    override fun toString(): kotlin.String = buildString {
        append("BatchDeleteTableRequest(")
        append("catalogId=$catalogId,")
        append("databaseName=$databaseName,")
        append("tablesToDelete=$tablesToDelete,")
        append("transactionId=$transactionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = catalogId?.hashCode() ?: 0
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (tablesToDelete?.hashCode() ?: 0)
        result = 31 * result + (transactionId?.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 BatchDeleteTableRequest

        if (catalogId != other.catalogId) return false
        if (databaseName != other.databaseName) return false
        if (tablesToDelete != other.tablesToDelete) return false
        if (transactionId != other.transactionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
         */
        public var catalogId: kotlin.String? = null
        /**
         * The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.
         */
        public var databaseName: kotlin.String? = null
        /**
         * A list of the table to delete.
         */
        public var tablesToDelete: List? = null
        /**
         * The transaction ID at which to delete the table contents.
         */
        public var transactionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchDeleteTableRequest) : this() {
            this.catalogId = x.catalogId
            this.databaseName = x.databaseName
            this.tablesToDelete = x.tablesToDelete
            this.transactionId = x.transactionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy