
commonMain.aws.sdk.kotlin.services.redshiftdata.model.DescribeStatementRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftdata.model
public class DescribeStatementRequest private constructor(builder: Builder) {
/**
* The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, `d9b6c0c9-0747-4bf4-b142-e8883122f766:2` has a suffix of `:2` that indicates the second SQL statement of a batch query. This identifier is returned by `BatchExecuteStatment`, `ExecuteStatement`, and `ListStatements`.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftdata.model.DescribeStatementRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeStatementRequest(")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id.hashCode()
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 DescribeStatementRequest
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftdata.model.DescribeStatementRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, `d9b6c0c9-0747-4bf4-b142-e8883122f766:2` has a suffix of `:2` that indicates the second SQL statement of a batch query. This identifier is returned by `BatchExecuteStatment`, `ExecuteStatement`, and `ListStatements`.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftdata.model.DescribeStatementRequest) : this() {
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftdata.model.DescribeStatementRequest = DescribeStatementRequest(this)
internal fun correctErrors(): Builder {
if (id == null) id = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy