commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeImportTasksResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
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)")
}
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()
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)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy