
commonMain.aws.sdk.kotlin.services.migrationhub.model.MigrationTask.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
/**
* Represents a migration task in a migration tool.
*/
public class MigrationTask 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
/**
* A name that identifies the vendor of the migration tool being used.
*/
public val progressUpdateStream: kotlin.String? = builder.progressUpdateStream
/**
* Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.
*/
public val resourceAttributeList: List? = builder.resourceAttributeList
/**
* Task object encapsulating task information.
*/
public val task: aws.sdk.kotlin.services.migrationhub.model.Task? = builder.task
/**
* 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.MigrationTask = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MigrationTask(")
append("migrationTaskName=$migrationTaskName,")
append("progressUpdateStream=$progressUpdateStream,")
append("resourceAttributeList=$resourceAttributeList,")
append("task=$task,")
append("updateDateTime=$updateDateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = migrationTaskName?.hashCode() ?: 0
result = 31 * result + (progressUpdateStream?.hashCode() ?: 0)
result = 31 * result + (resourceAttributeList?.hashCode() ?: 0)
result = 31 * result + (task?.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 MigrationTask
if (migrationTaskName != other.migrationTaskName) return false
if (progressUpdateStream != other.progressUpdateStream) return false
if (resourceAttributeList != other.resourceAttributeList) return false
if (task != other.task) return false
if (updateDateTime != other.updateDateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhub.model.MigrationTask = 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
/**
* A name that identifies the vendor of the migration tool being used.
*/
public var progressUpdateStream: kotlin.String? = null
/**
* Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.
*/
public var resourceAttributeList: List? = null
/**
* Task object encapsulating task information.
*/
public var task: aws.sdk.kotlin.services.migrationhub.model.Task? = 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.MigrationTask) : this() {
this.migrationTaskName = x.migrationTaskName
this.progressUpdateStream = x.progressUpdateStream
this.resourceAttributeList = x.resourceAttributeList
this.task = x.task
this.updateDateTime = x.updateDateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhub.model.MigrationTask = MigrationTask(this)
/**
* construct an [aws.sdk.kotlin.services.migrationhub.model.Task] inside the given [block]
*/
public fun task(block: aws.sdk.kotlin.services.migrationhub.model.Task.Builder.() -> kotlin.Unit) {
this.task = aws.sdk.kotlin.services.migrationhub.model.Task.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy