commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse.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 DescribeImportTasksResponse private constructor(builder: Builder) {
/**
* The token to request the next page of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A returned array of import tasks that match any applied filters, up to the specified number of maximum results.
*/
public val tasks: List? = builder.tasks
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeImportTasksResponse(")
append("nextToken=$nextToken,")
append("tasks=$tasks")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (tasks?.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 DescribeImportTasksResponse
if (nextToken != other.nextToken) return false
if (tasks != other.tasks) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The token to request the next page of results.
*/
public var nextToken: kotlin.String? = null
/**
* A returned array of import tasks that match any applied filters, up to the specified number of maximum results.
*/
public var tasks: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse) : this() {
this.nextToken = x.nextToken
this.tasks = x.tasks
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse = DescribeImportTasksResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}