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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunProgress.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The progress values reported by the `AssessmentProgress` response element.
 */
public class ReplicationTaskAssessmentRunProgress private constructor(builder: Builder) {
    /**
     * The number of individual assessments that have completed, successfully or not.
     */
    public val individualAssessmentCompletedCount: kotlin.Int = builder.individualAssessmentCompletedCount
    /**
     * The number of individual assessments that are specified to run.
     */
    public val individualAssessmentCount: kotlin.Int = builder.individualAssessmentCount

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicationTaskAssessmentRunProgress(")
        append("individualAssessmentCompletedCount=$individualAssessmentCompletedCount,")
        append("individualAssessmentCount=$individualAssessmentCount")
        append(")")
    }

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

        if (individualAssessmentCompletedCount != other.individualAssessmentCompletedCount) return false
        if (individualAssessmentCount != other.individualAssessmentCount) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of individual assessments that have completed, successfully or not.
         */
        public var individualAssessmentCompletedCount: kotlin.Int = 0
        /**
         * The number of individual assessments that are specified to run.
         */
        public var individualAssessmentCount: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunProgress) : this() {
            this.individualAssessmentCompletedCount = x.individualAssessmentCompletedCount
            this.individualAssessmentCount = x.individualAssessmentCount
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy