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

commonMain.aws.sdk.kotlin.services.glue.model.GetTablesRequest.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
import aws.smithy.kotlin.runtime.time.Instant

public class GetTablesRequest private constructor(builder: Builder) {
    /**
     * Specifies the table fields returned by the `GetTables` call. This parameter doesn’t accept an empty list. The request must include `NAME`.
     *
     * The following are the valid combinations of values:
     * + `NAME` - Names of all tables in the database.
     * + `NAME`, `TABLE_TYPE` - Names of all tables and the table types.
     */
    public val attributesToGet: List? = builder.attributesToGet
    /**
     * The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
     */
    public val catalogId: kotlin.String? = builder.catalogId
    /**
     * The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * A regular expression pattern. If present, only those tables whose names match the pattern are returned.
     */
    public val expression: kotlin.String? = builder.expression
    /**
     * Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
     */
    public val includeStatusDetails: kotlin.Boolean? = builder.includeStatusDetails
    /**
     * The maximum number of tables to return in a single response.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * A continuation token, included if this is a continuation call.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with `TransactionId`.
     */
    public val queryAsOfTime: aws.smithy.kotlin.runtime.time.Instant? = builder.queryAsOfTime
    /**
     * The transaction ID at which to read 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.GetTablesRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetTablesRequest(")
        append("attributesToGet=$attributesToGet,")
        append("catalogId=$catalogId,")
        append("databaseName=$databaseName,")
        append("expression=$expression,")
        append("includeStatusDetails=$includeStatusDetails,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("queryAsOfTime=$queryAsOfTime,")
        append("transactionId=$transactionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = attributesToGet?.hashCode() ?: 0
        result = 31 * result + (catalogId?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (expression?.hashCode() ?: 0)
        result = 31 * result + (includeStatusDetails?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (queryAsOfTime?.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 GetTablesRequest

        if (attributesToGet != other.attributesToGet) return false
        if (catalogId != other.catalogId) return false
        if (databaseName != other.databaseName) return false
        if (expression != other.expression) return false
        if (includeStatusDetails != other.includeStatusDetails) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (queryAsOfTime != other.queryAsOfTime) return false
        if (transactionId != other.transactionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the table fields returned by the `GetTables` call. This parameter doesn’t accept an empty list. The request must include `NAME`.
         *
         * The following are the valid combinations of values:
         * + `NAME` - Names of all tables in the database.
         * + `NAME`, `TABLE_TYPE` - Names of all tables and the table types.
         */
        public var attributesToGet: List? = null
        /**
         * The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
         */
        public var catalogId: kotlin.String? = null
        /**
         * The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
         */
        public var databaseName: kotlin.String? = null
        /**
         * A regular expression pattern. If present, only those tables whose names match the pattern are returned.
         */
        public var expression: kotlin.String? = null
        /**
         * Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
         */
        public var includeStatusDetails: kotlin.Boolean? = null
        /**
         * The maximum number of tables to return in a single response.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * A continuation token, included if this is a continuation call.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with `TransactionId`.
         */
        public var queryAsOfTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The transaction ID at which to read the table contents.
         */
        public var transactionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.GetTablesRequest) : this() {
            this.attributesToGet = x.attributesToGet
            this.catalogId = x.catalogId
            this.databaseName = x.databaseName
            this.expression = x.expression
            this.includeStatusDetails = x.includeStatusDetails
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.queryAsOfTime = x.queryAsOfTime
            this.transactionId = x.transactionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy