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

commonMain.aws.sdk.kotlin.services.databrew.model.StatisticOverride.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databrew.model



/**
 * Override of a particular evaluation for a profile job.
 */
public class StatisticOverride private constructor(builder: Builder) {
    /**
     * A map that includes overrides of an evaluation’s parameters.
     */
    public val parameters: Map = requireNotNull(builder.parameters) { "A non-null value must be provided for parameters" }
    /**
     * The name of an evaluation
     */
    public val statistic: kotlin.String = requireNotNull(builder.statistic) { "A non-null value must be provided for statistic" }

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

    override fun toString(): kotlin.String = buildString {
        append("StatisticOverride(")
        append("parameters=$parameters,")
        append("statistic=$statistic")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = parameters.hashCode()
        result = 31 * result + (statistic.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 StatisticOverride

        if (parameters != other.parameters) return false
        if (statistic != other.statistic) return false

        return true
    }

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

    public class Builder {
        /**
         * A map that includes overrides of an evaluation’s parameters.
         */
        public var parameters: Map? = null
        /**
         * The name of an evaluation
         */
        public var statistic: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.StatisticOverride) : this() {
            this.parameters = x.parameters
            this.statistic = x.statistic
        }

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

        internal fun correctErrors(): Builder {
            if (parameters == null) parameters = emptyMap()
            if (statistic == null) statistic = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy