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

commonMain.aws.sdk.kotlin.services.athena.model.ResultReuseInformation.kt Maven / Gradle / Ivy

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

/**
 * Contains information about whether the result of a previous query was reused.
 */
public class ResultReuseInformation private constructor(builder: Builder) {
    /**
     * True if a previous query result was reused; false if the result was generated from a new run of the query.
     */
    public val reusedPreviousResult: kotlin.Boolean = builder.reusedPreviousResult

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

    override fun toString(): kotlin.String = buildString {
        append("ResultReuseInformation(")
        append("reusedPreviousResult=$reusedPreviousResult")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = reusedPreviousResult.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 ResultReuseInformation

        if (reusedPreviousResult != other.reusedPreviousResult) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * True if a previous query result was reused; false if the result was generated from a new run of the query.
         */
        public var reusedPreviousResult: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.athena.model.ResultReuseInformation) : this() {
            this.reusedPreviousResult = x.reusedPreviousResult
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy