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

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



public class SearchTablesResponse private constructor(builder: Builder) {
    /**
     * A continuation token, present if the current list segment is not the last.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * A list of the requested `Table` objects. The `SearchTables` response returns only the tables that you have access to.
     */
    public val tableList: List? = builder.tableList

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

    override fun toString(): kotlin.String = buildString {
        append("SearchTablesResponse(")
        append("nextToken=$nextToken,")
        append("tableList=$tableList")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.hashCode() ?: 0
        result = 31 * result + (tableList?.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 SearchTablesResponse

        if (nextToken != other.nextToken) return false
        if (tableList != other.tableList) return false

        return true
    }

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

    public class Builder {
        /**
         * A continuation token, present if the current list segment is not the last.
         */
        public var nextToken: kotlin.String? = null
        /**
         * A list of the requested `Table` objects. The `SearchTables` response returns only the tables that you have access to.
         */
        public var tableList: List
? = null @PublishedApi internal constructor() @PublishedApi internal constructor(x: aws.sdk.kotlin.services.glue.model.SearchTablesResponse) : this() { this.nextToken = x.nextToken this.tableList = x.tableList } @PublishedApi internal fun build(): aws.sdk.kotlin.services.glue.model.SearchTablesResponse = SearchTablesResponse(this) internal fun correctErrors(): Builder { return this } } }