commonMain.aws.sdk.kotlin.services.glue.model.GetTablesResponse.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 GetTablesResponse 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.
*/
public val tableList: List? = builder.tableList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetTablesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTablesResponse(")
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 GetTablesResponse
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.GetTablesResponse = 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.
*/
public var tableList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetTablesResponse) : this() {
this.nextToken = x.nextToken
this.tableList = x.tableList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetTablesResponse = GetTablesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy