commonMain.aws.sdk.kotlin.services.athena.model.GetQueryResultsRequest.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 GetQueryResultsRequest private constructor(builder: Builder) {
/**
* The maximum number of results (rows) to return in this request.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* 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 unique ID of the query execution.
*/
public val queryExecutionId: kotlin.String? = builder.queryExecutionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.GetQueryResultsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQueryResultsRequest(")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("queryExecutionId=$queryExecutionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (queryExecutionId?.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 GetQueryResultsRequest
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (queryExecutionId != other.queryExecutionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.GetQueryResultsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of results (rows) to return in this request.
*/
public var maxResults: kotlin.Int? = null
/**
* 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 unique ID of the query execution.
*/
public var queryExecutionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.GetQueryResultsRequest) : this() {
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.queryExecutionId = x.queryExecutionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.GetQueryResultsRequest = GetQueryResultsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}