
commonMain.aws.sdk.kotlin.services.swf.model.RespondActivityTaskCanceledRequest.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 RespondActivityTaskCanceledRequest private constructor(builder: Builder) {
/**
* Information about the cancellation.
*/
public val details: kotlin.String? = builder.details
/**
* The `taskToken` of the ActivityTask.
*
* `taskToken` is generated by the service and should be treated as an opaque value. If the task is passed to another process, its `taskToken` must also be passed. This enables it to provide its progress and respond with results.
*/
public val taskToken: kotlin.String? = builder.taskToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.RespondActivityTaskCanceledRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RespondActivityTaskCanceledRequest(")
append("details=$details,")
append("taskToken=$taskToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.hashCode() ?: 0
result = 31 * result + (taskToken?.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 RespondActivityTaskCanceledRequest
if (details != other.details) return false
if (taskToken != other.taskToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.RespondActivityTaskCanceledRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the cancellation.
*/
public var details: kotlin.String? = null
/**
* The `taskToken` of the ActivityTask.
*
* `taskToken` is generated by the service and should be treated as an opaque value. If the task is passed to another process, its `taskToken` must also be passed. This enables it to provide its progress and respond with results.
*/
public var taskToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.RespondActivityTaskCanceledRequest) : this() {
this.details = x.details
this.taskToken = x.taskToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.RespondActivityTaskCanceledRequest = RespondActivityTaskCanceledRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy