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

commonMain.aws.sdk.kotlin.services.datazone.model.RunStatisticsForAssets.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The asset statistics from the data source run.
 */
public class RunStatisticsForAssets private constructor(builder: Builder) {
    /**
     * The `added` statistic for the data source run.
     */
    public val added: kotlin.Int? = builder.added
    /**
     * The `failed` statistic for the data source run.
     */
    public val failed: kotlin.Int? = builder.failed
    /**
     * The `skipped` statistic for the data source run.
     */
    public val skipped: kotlin.Int? = builder.skipped
    /**
     * The `unchanged` statistic for the data source run.
     */
    public val unchanged: kotlin.Int? = builder.unchanged
    /**
     * The `updated` statistic for the data source run.
     */
    public val updated: kotlin.Int? = builder.updated

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

    override fun toString(): kotlin.String = buildString {
        append("RunStatisticsForAssets(")
        append("added=$added,")
        append("failed=$failed,")
        append("skipped=$skipped,")
        append("unchanged=$unchanged,")
        append("updated=$updated")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = added ?: 0
        result = 31 * result + (failed ?: 0)
        result = 31 * result + (skipped ?: 0)
        result = 31 * result + (unchanged ?: 0)
        result = 31 * result + (updated ?: 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 RunStatisticsForAssets

        if (added != other.added) return false
        if (failed != other.failed) return false
        if (skipped != other.skipped) return false
        if (unchanged != other.unchanged) return false
        if (updated != other.updated) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The `added` statistic for the data source run.
         */
        public var added: kotlin.Int? = null
        /**
         * The `failed` statistic for the data source run.
         */
        public var failed: kotlin.Int? = null
        /**
         * The `skipped` statistic for the data source run.
         */
        public var skipped: kotlin.Int? = null
        /**
         * The `unchanged` statistic for the data source run.
         */
        public var unchanged: kotlin.Int? = null
        /**
         * The `updated` statistic for the data source run.
         */
        public var updated: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.RunStatisticsForAssets) : this() {
            this.added = x.added
            this.failed = x.failed
            this.skipped = x.skipped
            this.unchanged = x.unchanged
            this.updated = x.updated
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy