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

commonMain.aws.sdk.kotlin.services.swf.model.CountPendingActivityTasksRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.swf.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CountPendingActivityTasksRequest private constructor(builder: Builder) {
    /**
     * The name of the domain that contains the task list.
     */
    public val domain: kotlin.String? = builder.domain
    /**
     * The name of the task list.
     */
    public val taskList: aws.sdk.kotlin.services.swf.model.TaskList? = builder.taskList

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

    override fun toString(): kotlin.String = buildString {
        append("CountPendingActivityTasksRequest(")
        append("domain=$domain,")
        append("taskList=$taskList")
        append(")")
    }

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

        if (domain != other.domain) return false
        if (taskList != other.taskList) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the domain that contains the task list.
         */
        public var domain: kotlin.String? = null
        /**
         * The name of the task list.
         */
        public var taskList: aws.sdk.kotlin.services.swf.model.TaskList? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.swf.model.CountPendingActivityTasksRequest) : this() {
            this.domain = x.domain
            this.taskList = x.taskList
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.swf.model.TaskList] inside the given [block]
         */
        public fun taskList(block: aws.sdk.kotlin.services.swf.model.TaskList.Builder.() -> kotlin.Unit) {
            this.taskList = aws.sdk.kotlin.services.swf.model.TaskList.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy