
commonMain.aws.sdk.kotlin.services.swf.model.PollForActivityTaskRequest.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 PollForActivityTaskRequest private constructor(builder: Builder) {
/**
* The name of the domain that contains the task lists being polled.
*/
public val domain: kotlin.String? = builder.domain
/**
* Identity of the worker making the request, recorded in the `ActivityTaskStarted` event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
*/
public val identity: kotlin.String? = builder.identity
/**
* Specifies the task list to poll for activity tasks.
*
* The specified string must not start or end with whitespace. It must not contain a `:` (colon), `/` (slash), `|` (vertical bar), or any control characters (`\u0000-\u001f` | `\u007f-\u009f`). Also, it must *not* be the literal string `arn`.
*/
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.PollForActivityTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PollForActivityTaskRequest(")
append("domain=$domain,")
append("identity=$identity,")
append("taskList=$taskList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (identity?.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 PollForActivityTaskRequest
if (domain != other.domain) return false
if (identity != other.identity) return false
if (taskList != other.taskList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.PollForActivityTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the domain that contains the task lists being polled.
*/
public var domain: kotlin.String? = null
/**
* Identity of the worker making the request, recorded in the `ActivityTaskStarted` event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
*/
public var identity: kotlin.String? = null
/**
* Specifies the task list to poll for activity tasks.
*
* The specified string must not start or end with whitespace. It must not contain a `:` (colon), `/` (slash), `|` (vertical bar), or any control characters (`\u0000-\u001f` | `\u007f-\u009f`). Also, it must *not* be the literal string `arn`.
*/
public var taskList: aws.sdk.kotlin.services.swf.model.TaskList? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.PollForActivityTaskRequest) : this() {
this.domain = x.domain
this.identity = x.identity
this.taskList = x.taskList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.PollForActivityTaskRequest = PollForActivityTaskRequest(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