
commonMain.aws.sdk.kotlin.services.migrationhub.model.MigrationTaskSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.migrationhub.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* MigrationTaskSummary includes `MigrationTaskName`, `ProgressPercent`, `ProgressUpdateStream`, `Status`, and `UpdateDateTime` for each task.
*/
public class MigrationTaskSummary private constructor(builder: Builder) {
/**
* Unique identifier that references the migration task. *Do not store personal data in this field.*
*/
public val migrationTaskName: kotlin.String? = builder.migrationTaskName
/**
* Indication of the percentage completion of the task.
*/
public val progressPercent: kotlin.Int? = builder.progressPercent
/**
* An AWS resource used for access control. It should uniquely identify the migration tool as it is used for all updates made by the tool.
*/
public val progressUpdateStream: kotlin.String? = builder.progressUpdateStream
/**
* Status of the task.
*/
public val status: aws.sdk.kotlin.services.migrationhub.model.Status? = builder.status
/**
* Detail information of what is being done within the overall status state.
*/
public val statusDetail: kotlin.String? = builder.statusDetail
/**
* The timestamp when the task was gathered.
*/
public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateDateTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhub.model.MigrationTaskSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MigrationTaskSummary(")
append("migrationTaskName=$migrationTaskName,")
append("progressPercent=$progressPercent,")
append("progressUpdateStream=$progressUpdateStream,")
append("status=$status,")
append("statusDetail=$statusDetail,")
append("updateDateTime=$updateDateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = migrationTaskName?.hashCode() ?: 0
result = 31 * result + (progressPercent ?: 0)
result = 31 * result + (progressUpdateStream?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusDetail?.hashCode() ?: 0)
result = 31 * result + (updateDateTime?.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 MigrationTaskSummary
if (migrationTaskName != other.migrationTaskName) return false
if (progressPercent != other.progressPercent) return false
if (progressUpdateStream != other.progressUpdateStream) return false
if (status != other.status) return false
if (statusDetail != other.statusDetail) return false
if (updateDateTime != other.updateDateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhub.model.MigrationTaskSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Unique identifier that references the migration task. *Do not store personal data in this field.*
*/
public var migrationTaskName: kotlin.String? = null
/**
* Indication of the percentage completion of the task.
*/
public var progressPercent: kotlin.Int? = null
/**
* An AWS resource used for access control. It should uniquely identify the migration tool as it is used for all updates made by the tool.
*/
public var progressUpdateStream: kotlin.String? = null
/**
* Status of the task.
*/
public var status: aws.sdk.kotlin.services.migrationhub.model.Status? = null
/**
* Detail information of what is being done within the overall status state.
*/
public var statusDetail: kotlin.String? = null
/**
* The timestamp when the task was gathered.
*/
public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhub.model.MigrationTaskSummary) : this() {
this.migrationTaskName = x.migrationTaskName
this.progressPercent = x.progressPercent
this.progressUpdateStream = x.progressUpdateStream
this.status = x.status
this.statusDetail = x.statusDetail
this.updateDateTime = x.updateDateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhub.model.MigrationTaskSummary = MigrationTaskSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy