commonMain.aws.sdk.kotlin.services.glue.model.SearchTablesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
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()
@SdkDsl
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
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy