commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunResultStatistic.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
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 object containing the result statistics for a completed assessment run.
*/
public class ReplicationTaskAssessmentRunResultStatistic private constructor(builder: Builder) {
/**
* The number of individual assessments that were cancelled during the assessment run.
*/
public val cancelled: kotlin.Int = builder.cancelled
/**
* The number of individual assessments that encountered a critical error and could not complete properly.
*/
public val error: kotlin.Int = builder.error
/**
* The number of individual assessments that failed to meet the criteria defined in the assessment run.
*/
public val failed: kotlin.Int = builder.failed
/**
* The number of individual assessments that successfully passed all checks in the assessment run.
*/
public val passed: kotlin.Int = builder.passed
/**
* Indicates that the recent completed AssessmentRun triggered a warning.
*/
public val warning: kotlin.Int = builder.warning
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunResultStatistic = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReplicationTaskAssessmentRunResultStatistic(")
append("cancelled=$cancelled,")
append("error=$error,")
append("failed=$failed,")
append("passed=$passed,")
append("warning=$warning")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cancelled
result = 31 * result + (error)
result = 31 * result + (failed)
result = 31 * result + (passed)
result = 31 * result + (warning)
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 ReplicationTaskAssessmentRunResultStatistic
if (cancelled != other.cancelled) return false
if (error != other.error) return false
if (failed != other.failed) return false
if (passed != other.passed) return false
if (warning != other.warning) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunResultStatistic = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of individual assessments that were cancelled during the assessment run.
*/
public var cancelled: kotlin.Int = 0
/**
* The number of individual assessments that encountered a critical error and could not complete properly.
*/
public var error: kotlin.Int = 0
/**
* The number of individual assessments that failed to meet the criteria defined in the assessment run.
*/
public var failed: kotlin.Int = 0
/**
* The number of individual assessments that successfully passed all checks in the assessment run.
*/
public var passed: kotlin.Int = 0
/**
* Indicates that the recent completed AssessmentRun triggered a warning.
*/
public var warning: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunResultStatistic) : this() {
this.cancelled = x.cancelled
this.error = x.error
this.failed = x.failed
this.passed = x.passed
this.warning = x.warning
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentRunResultStatistic = ReplicationTaskAssessmentRunResultStatistic(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy