All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.redshiftdata.model.ExecuteStatementResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshiftdata.model

import aws.smithy.kotlin.runtime.time.Instant

public class ExecuteStatementResponse private constructor(builder: Builder) {
    /**
     * The cluster identifier. This element is not returned when connecting to a serverless workgroup.
     */
    public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
    /**
     * The date and time (UTC) the statement was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The name of the database.
     */
    public val database: kotlin.String? = builder.database
    /**
     * The database user name.
     */
    public val dbUser: kotlin.String? = builder.dbUser
    /**
     * The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The name or ARN of the secret that enables access to the database.
     */
    public val secretArn: kotlin.String? = builder.secretArn
    /**
     * The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.
     */
    public val workgroupName: kotlin.String? = builder.workgroupName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftdata.model.ExecuteStatementResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ExecuteStatementResponse(")
        append("clusterIdentifier=$clusterIdentifier,")
        append("createdAt=$createdAt,")
        append("database=$database,")
        append("dbUser=$dbUser,")
        append("id=$id,")
        append("secretArn=$secretArn,")
        append("workgroupName=$workgroupName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterIdentifier?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (database?.hashCode() ?: 0)
        result = 31 * result + (dbUser?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (secretArn?.hashCode() ?: 0)
        result = 31 * result + (workgroupName?.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 ExecuteStatementResponse

        if (clusterIdentifier != other.clusterIdentifier) return false
        if (createdAt != other.createdAt) return false
        if (database != other.database) return false
        if (dbUser != other.dbUser) return false
        if (id != other.id) return false
        if (secretArn != other.secretArn) return false
        if (workgroupName != other.workgroupName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftdata.model.ExecuteStatementResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The cluster identifier. This element is not returned when connecting to a serverless workgroup.
         */
        public var clusterIdentifier: kotlin.String? = null
        /**
         * The date and time (UTC) the statement was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the database.
         */
        public var database: kotlin.String? = null
        /**
         * The database user name.
         */
        public var dbUser: kotlin.String? = null
        /**
         * The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
         */
        public var id: kotlin.String? = null
        /**
         * The name or ARN of the secret that enables access to the database.
         */
        public var secretArn: kotlin.String? = null
        /**
         * The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.
         */
        public var workgroupName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshiftdata.model.ExecuteStatementResponse) : this() {
            this.clusterIdentifier = x.clusterIdentifier
            this.createdAt = x.createdAt
            this.database = x.database
            this.dbUser = x.dbUser
            this.id = x.id
            this.secretArn = x.secretArn
            this.workgroupName = x.workgroupName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.redshiftdata.model.ExecuteStatementResponse = ExecuteStatementResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy