commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartImportTaskResponse private constructor(builder: Builder) {
/**
* An array of information related to the import task request including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.
*/
public val task: aws.sdk.kotlin.services.applicationdiscoveryservice.model.ImportTask? = builder.task
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartImportTaskResponse(")
append("task=$task")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = task?.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 StartImportTaskResponse
if (task != other.task) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of information related to the import task request including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.
*/
public var task: aws.sdk.kotlin.services.applicationdiscoveryservice.model.ImportTask? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskResponse) : this() {
this.task = x.task
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskResponse = StartImportTaskResponse(this)
/**
* construct an [aws.sdk.kotlin.services.applicationdiscoveryservice.model.ImportTask] inside the given [block]
*/
public fun task(block: aws.sdk.kotlin.services.applicationdiscoveryservice.model.ImportTask.Builder.() -> kotlin.Unit) {
this.task = aws.sdk.kotlin.services.applicationdiscoveryservice.model.ImportTask.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy