
commonMain.aws.sdk.kotlin.services.migrationhub.model.ImportMigrationTaskRequest.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
public class ImportMigrationTaskRequest private constructor(builder: Builder) {
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
public val dryRun: kotlin.Boolean? = builder.dryRun
/**
* Unique identifier that references the migration task. *Do not store personal data in this field.*
*/
public val migrationTaskName: kotlin.String? = builder.migrationTaskName
/**
* The name of the ProgressUpdateStream. >
*/
public val progressUpdateStream: kotlin.String? = builder.progressUpdateStream
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhub.model.ImportMigrationTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportMigrationTaskRequest(")
append("dryRun=$dryRun,")
append("migrationTaskName=$migrationTaskName,")
append("progressUpdateStream=$progressUpdateStream")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dryRun?.hashCode() ?: 0
result = 31 * result + (migrationTaskName?.hashCode() ?: 0)
result = 31 * result + (progressUpdateStream?.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 ImportMigrationTaskRequest
if (dryRun != other.dryRun) return false
if (migrationTaskName != other.migrationTaskName) return false
if (progressUpdateStream != other.progressUpdateStream) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhub.model.ImportMigrationTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
public var dryRun: kotlin.Boolean? = null
/**
* Unique identifier that references the migration task. *Do not store personal data in this field.*
*/
public var migrationTaskName: kotlin.String? = null
/**
* The name of the ProgressUpdateStream. >
*/
public var progressUpdateStream: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhub.model.ImportMigrationTaskRequest) : this() {
this.dryRun = x.dryRun
this.migrationTaskName = x.migrationTaskName
this.progressUpdateStream = x.progressUpdateStream
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhub.model.ImportMigrationTaskRequest = ImportMigrationTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy