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

commonMain.aws.sdk.kotlin.services.glue.model.StatisticSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

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

/**
 * Summary information about a statistic.
 */
public class StatisticSummary private constructor(builder: Builder) {
    /**
     * The list of columns referenced by the statistic.
     */
    public val columnsReferenced: List? = builder.columnsReferenced
    /**
     * The value of the statistic.
     */
    public val doubleValue: kotlin.Double = builder.doubleValue
    /**
     * The evaluation level of the statistic. Possible values: `Dataset`, `Column`, `Multicolumn`.
     */
    public val evaluationLevel: aws.sdk.kotlin.services.glue.model.StatisticEvaluationLevel? = builder.evaluationLevel
    /**
     * The inclusion annotation for the statistic.
     */
    public val inclusionAnnotation: aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation? = builder.inclusionAnnotation
    /**
     * The Profile ID.
     */
    public val profileId: kotlin.String? = builder.profileId
    /**
     * The timestamp when the statistic was recorded.
     */
    public val recordedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.recordedOn
    /**
     * The list of datasets referenced by the statistic.
     */
    public val referencedDatasets: List? = builder.referencedDatasets
    /**
     * The Run Identifier
     */
    public val runIdentifier: aws.sdk.kotlin.services.glue.model.RunIdentifier? = builder.runIdentifier
    /**
     * The Statistic ID.
     */
    public val statisticId: kotlin.String? = builder.statisticId
    /**
     * The name of the statistic.
     */
    public val statisticName: kotlin.String? = builder.statisticName
    /**
     * A `StatisticPropertiesMap`, which contains a `NameString` and `DescriptionString`
     */
    public val statisticProperties: Map? = builder.statisticProperties

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

    override fun toString(): kotlin.String = buildString {
        append("StatisticSummary(")
        append("columnsReferenced=$columnsReferenced,")
        append("doubleValue=$doubleValue,")
        append("evaluationLevel=$evaluationLevel,")
        append("inclusionAnnotation=$inclusionAnnotation,")
        append("profileId=$profileId,")
        append("recordedOn=$recordedOn,")
        append("referencedDatasets=$referencedDatasets,")
        append("runIdentifier=$runIdentifier,")
        append("statisticId=$statisticId,")
        append("statisticName=$statisticName,")
        append("statisticProperties=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = columnsReferenced?.hashCode() ?: 0
        result = 31 * result + (doubleValue.hashCode())
        result = 31 * result + (evaluationLevel?.hashCode() ?: 0)
        result = 31 * result + (inclusionAnnotation?.hashCode() ?: 0)
        result = 31 * result + (profileId?.hashCode() ?: 0)
        result = 31 * result + (recordedOn?.hashCode() ?: 0)
        result = 31 * result + (referencedDatasets?.hashCode() ?: 0)
        result = 31 * result + (runIdentifier?.hashCode() ?: 0)
        result = 31 * result + (statisticId?.hashCode() ?: 0)
        result = 31 * result + (statisticName?.hashCode() ?: 0)
        result = 31 * result + (statisticProperties?.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 StatisticSummary

        if (columnsReferenced != other.columnsReferenced) return false
        if (!(doubleValue?.equals(other.doubleValue) ?: (other.doubleValue == null))) return false
        if (evaluationLevel != other.evaluationLevel) return false
        if (inclusionAnnotation != other.inclusionAnnotation) return false
        if (profileId != other.profileId) return false
        if (recordedOn != other.recordedOn) return false
        if (referencedDatasets != other.referencedDatasets) return false
        if (runIdentifier != other.runIdentifier) return false
        if (statisticId != other.statisticId) return false
        if (statisticName != other.statisticName) return false
        if (statisticProperties != other.statisticProperties) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The list of columns referenced by the statistic.
         */
        public var columnsReferenced: List? = null
        /**
         * The value of the statistic.
         */
        public var doubleValue: kotlin.Double = 0.0
        /**
         * The evaluation level of the statistic. Possible values: `Dataset`, `Column`, `Multicolumn`.
         */
        public var evaluationLevel: aws.sdk.kotlin.services.glue.model.StatisticEvaluationLevel? = null
        /**
         * The inclusion annotation for the statistic.
         */
        public var inclusionAnnotation: aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation? = null
        /**
         * The Profile ID.
         */
        public var profileId: kotlin.String? = null
        /**
         * The timestamp when the statistic was recorded.
         */
        public var recordedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The list of datasets referenced by the statistic.
         */
        public var referencedDatasets: List? = null
        /**
         * The Run Identifier
         */
        public var runIdentifier: aws.sdk.kotlin.services.glue.model.RunIdentifier? = null
        /**
         * The Statistic ID.
         */
        public var statisticId: kotlin.String? = null
        /**
         * The name of the statistic.
         */
        public var statisticName: kotlin.String? = null
        /**
         * A `StatisticPropertiesMap`, which contains a `NameString` and `DescriptionString`
         */
        public var statisticProperties: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.StatisticSummary) : this() {
            this.columnsReferenced = x.columnsReferenced
            this.doubleValue = x.doubleValue
            this.evaluationLevel = x.evaluationLevel
            this.inclusionAnnotation = x.inclusionAnnotation
            this.profileId = x.profileId
            this.recordedOn = x.recordedOn
            this.referencedDatasets = x.referencedDatasets
            this.runIdentifier = x.runIdentifier
            this.statisticId = x.statisticId
            this.statisticName = x.statisticName
            this.statisticProperties = x.statisticProperties
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy