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

commonMain.aws.sdk.kotlin.services.athena.model.CalculationSummary.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

/**
 * Summary information for a notebook calculation.
 */
public class CalculationSummary private constructor(builder: Builder) {
    /**
     * The calculation execution UUID.
     */
    public val calculationExecutionId: kotlin.String? = builder.calculationExecutionId
    /**
     * A description of the calculation.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Contains information about the status of the calculation.
     */
    public val status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("CalculationSummary(")
        append("calculationExecutionId=$calculationExecutionId,")
        append("description=$description,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = calculationExecutionId?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (status?.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 CalculationSummary

        if (calculationExecutionId != other.calculationExecutionId) return false
        if (description != other.description) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The calculation execution UUID.
         */
        public var calculationExecutionId: kotlin.String? = null
        /**
         * A description of the calculation.
         */
        public var description: kotlin.String? = null
        /**
         * Contains information about the status of the calculation.
         */
        public var status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.athena.model.CalculationSummary) : this() {
            this.calculationExecutionId = x.calculationExecutionId
            this.description = x.description
            this.status = x.status
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.athena.model.CalculationStatus] inside the given [block]
         */
        public fun status(block: aws.sdk.kotlin.services.athena.model.CalculationStatus.Builder.() -> kotlin.Unit) {
            this.status = aws.sdk.kotlin.services.athena.model.CalculationStatus.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy