
commonMain.aws.sdk.kotlin.services.swf.model.DecisionTaskCompletedEventAttributes.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
/**
* Provides the details of the `DecisionTaskCompleted` event.
*/
public class DecisionTaskCompletedEventAttributes private constructor(builder: Builder) {
/**
* User defined context for the workflow execution.
*/
public val executionContext: kotlin.String? = builder.executionContext
/**
* The ID of the `DecisionTaskScheduled` event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public val scheduledEventId: kotlin.Long = builder.scheduledEventId
/**
* The ID of the `DecisionTaskStarted` event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public val startedEventId: kotlin.Long = builder.startedEventId
/**
* Represents a task list.
*/
public val taskList: aws.sdk.kotlin.services.swf.model.TaskList? = builder.taskList
/**
* The maximum amount of time the decision task can wait to be assigned to a worker.
*/
public val taskListScheduleToStartTimeout: kotlin.String? = builder.taskListScheduleToStartTimeout
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.DecisionTaskCompletedEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DecisionTaskCompletedEventAttributes(")
append("executionContext=$executionContext,")
append("scheduledEventId=$scheduledEventId,")
append("startedEventId=$startedEventId,")
append("taskList=$taskList,")
append("taskListScheduleToStartTimeout=$taskListScheduleToStartTimeout")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = executionContext?.hashCode() ?: 0
result = 31 * result + (scheduledEventId.hashCode())
result = 31 * result + (startedEventId.hashCode())
result = 31 * result + (taskList?.hashCode() ?: 0)
result = 31 * result + (taskListScheduleToStartTimeout?.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 DecisionTaskCompletedEventAttributes
if (executionContext != other.executionContext) return false
if (scheduledEventId != other.scheduledEventId) return false
if (startedEventId != other.startedEventId) return false
if (taskList != other.taskList) return false
if (taskListScheduleToStartTimeout != other.taskListScheduleToStartTimeout) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.DecisionTaskCompletedEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* User defined context for the workflow execution.
*/
public var executionContext: kotlin.String? = null
/**
* The ID of the `DecisionTaskScheduled` event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public var scheduledEventId: kotlin.Long = 0L
/**
* The ID of the `DecisionTaskStarted` event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public var startedEventId: kotlin.Long = 0L
/**
* Represents a task list.
*/
public var taskList: aws.sdk.kotlin.services.swf.model.TaskList? = null
/**
* The maximum amount of time the decision task can wait to be assigned to a worker.
*/
public var taskListScheduleToStartTimeout: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.DecisionTaskCompletedEventAttributes) : this() {
this.executionContext = x.executionContext
this.scheduledEventId = x.scheduledEventId
this.startedEventId = x.startedEventId
this.taskList = x.taskList
this.taskListScheduleToStartTimeout = x.taskListScheduleToStartTimeout
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.DecisionTaskCompletedEventAttributes = DecisionTaskCompletedEventAttributes(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