commonMain.aws.sdk.kotlin.services.athena.model.GetQueryResultsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetQueryResultsResponse private constructor(builder: Builder) {
/**
* A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the `NextToken` from the response object of the previous page call.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The results of the query execution.
*/
public val resultSet: aws.sdk.kotlin.services.athena.model.ResultSet? = builder.resultSet
/**
* The number of rows inserted with a `CREATE TABLE AS SELECT`, `INSERT INTO`, or `UPDATE` statement.
*/
public val updateCount: kotlin.Long? = builder.updateCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.GetQueryResultsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQueryResultsResponse(")
append("nextToken=$nextToken,")
append("resultSet=$resultSet,")
append("updateCount=$updateCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (resultSet?.hashCode() ?: 0)
result = 31 * result + (updateCount?.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 GetQueryResultsResponse
if (nextToken != other.nextToken) return false
if (resultSet != other.resultSet) return false
if (updateCount != other.updateCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.GetQueryResultsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the `NextToken` from the response object of the previous page call.
*/
public var nextToken: kotlin.String? = null
/**
* The results of the query execution.
*/
public var resultSet: aws.sdk.kotlin.services.athena.model.ResultSet? = null
/**
* The number of rows inserted with a `CREATE TABLE AS SELECT`, `INSERT INTO`, or `UPDATE` statement.
*/
public var updateCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.GetQueryResultsResponse) : this() {
this.nextToken = x.nextToken
this.resultSet = x.resultSet
this.updateCount = x.updateCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.GetQueryResultsResponse = GetQueryResultsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.athena.model.ResultSet] inside the given [block]
*/
public fun resultSet(block: aws.sdk.kotlin.services.athena.model.ResultSet.Builder.() -> kotlin.Unit) {
this.resultSet = aws.sdk.kotlin.services.athena.model.ResultSet.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}