
commonMain.aws.sdk.kotlin.services.redshiftdata.model.DescribeTableResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftdata.model
public class DescribeTableResponse private constructor(builder: Builder) {
/**
* A list of columns in the table.
*/
public val columnList: List? = builder.columnList
/**
* A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The table name.
*/
public val tableName: kotlin.String? = builder.tableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftdata.model.DescribeTableResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeTableResponse(")
append("columnList=$columnList,")
append("nextToken=$nextToken,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnList?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (tableName?.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 DescribeTableResponse
if (columnList != other.columnList) return false
if (nextToken != other.nextToken) return false
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftdata.model.DescribeTableResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of columns in the table.
*/
public var columnList: List? = null
/**
* A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
*/
public var nextToken: kotlin.String? = null
/**
* The table name.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftdata.model.DescribeTableResponse) : this() {
this.columnList = x.columnList
this.nextToken = x.nextToken
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftdata.model.DescribeTableResponse = DescribeTableResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy