All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.braket.model.SearchQuantumTasksResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.braket.model



public class SearchQuantumTasksResponse private constructor(builder: Builder) {
    /**
     * A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * An array of `QuantumTaskSummary` objects for tasks that match the specified filters.
     */
    public val quantumTasks: List = requireNotNull(builder.quantumTasks) { "A non-null value must be provided for quantumTasks" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.braket.model.SearchQuantumTasksResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SearchQuantumTasksResponse(")
        append("nextToken=$nextToken,")
        append("quantumTasks=$quantumTasks")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.hashCode() ?: 0
        result = 31 * result + (quantumTasks.hashCode())
        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 SearchQuantumTasksResponse

        if (nextToken != other.nextToken) return false
        if (quantumTasks != other.quantumTasks) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.braket.model.SearchQuantumTasksResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
         */
        public var nextToken: kotlin.String? = null
        /**
         * An array of `QuantumTaskSummary` objects for tasks that match the specified filters.
         */
        public var quantumTasks: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.braket.model.SearchQuantumTasksResponse) : this() {
            this.nextToken = x.nextToken
            this.quantumTasks = x.quantumTasks
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.braket.model.SearchQuantumTasksResponse = SearchQuantumTasksResponse(this)

        internal fun correctErrors(): Builder {
            if (quantumTasks == null) quantumTasks = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy