
commonMain.aws.sdk.kotlin.services.swf.model.WorkflowExecutionCompletedEventAttributes.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 `WorkflowExecutionCompleted` event.
*/
public class WorkflowExecutionCompletedEventAttributes private constructor(builder: Builder) {
/**
* The ID of the `DecisionTaskCompleted` event corresponding to the decision task that resulted in the `CompleteWorkflowExecution` decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public val decisionTaskCompletedEventId: kotlin.Long = builder.decisionTaskCompletedEventId
/**
* The result produced by the workflow execution upon successful completion.
*/
public val result: kotlin.String? = builder.result
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.WorkflowExecutionCompletedEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkflowExecutionCompletedEventAttributes(")
append("decisionTaskCompletedEventId=$decisionTaskCompletedEventId,")
append("result=$result")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = decisionTaskCompletedEventId.hashCode()
result = 31 * result + (result?.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 WorkflowExecutionCompletedEventAttributes
if (decisionTaskCompletedEventId != other.decisionTaskCompletedEventId) return false
if (result != other.result) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.WorkflowExecutionCompletedEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the `DecisionTaskCompleted` event corresponding to the decision task that resulted in the `CompleteWorkflowExecution` decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public var decisionTaskCompletedEventId: kotlin.Long = 0L
/**
* The result produced by the workflow execution upon successful completion.
*/
public var result: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.WorkflowExecutionCompletedEventAttributes) : this() {
this.decisionTaskCompletedEventId = x.decisionTaskCompletedEventId
this.result = x.result
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.WorkflowExecutionCompletedEventAttributes = WorkflowExecutionCompletedEventAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy