
commonMain.aws.sdk.kotlin.services.swf.model.WorkflowExecutionSignaledEventAttributes.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 `WorkflowExecutionSignaled` event.
*/
public class WorkflowExecutionSignaledEventAttributes private constructor(builder: Builder) {
/**
* The ID of the `SignalExternalWorkflowExecutionInitiated` event corresponding to the `SignalExternalWorkflow` decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.
*/
public val externalInitiatedEventId: kotlin.Long = builder.externalInitiatedEventId
/**
* The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.
*/
public val externalWorkflowExecution: aws.sdk.kotlin.services.swf.model.WorkflowExecution? = builder.externalWorkflowExecution
/**
* The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal.
*/
public val input: kotlin.String? = builder.input
/**
* The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.
*/
public val signalName: kotlin.String = requireNotNull(builder.signalName) { "A non-null value must be provided for signalName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.WorkflowExecutionSignaledEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkflowExecutionSignaledEventAttributes(")
append("externalInitiatedEventId=$externalInitiatedEventId,")
append("externalWorkflowExecution=$externalWorkflowExecution,")
append("input=$input,")
append("signalName=$signalName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = externalInitiatedEventId.hashCode()
result = 31 * result + (externalWorkflowExecution?.hashCode() ?: 0)
result = 31 * result + (input?.hashCode() ?: 0)
result = 31 * result + (signalName.hashCode())
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 WorkflowExecutionSignaledEventAttributes
if (externalInitiatedEventId != other.externalInitiatedEventId) return false
if (externalWorkflowExecution != other.externalWorkflowExecution) return false
if (input != other.input) return false
if (signalName != other.signalName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.WorkflowExecutionSignaledEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the `SignalExternalWorkflowExecutionInitiated` event corresponding to the `SignalExternalWorkflow` decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.
*/
public var externalInitiatedEventId: kotlin.Long = 0L
/**
* The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.
*/
public var externalWorkflowExecution: aws.sdk.kotlin.services.swf.model.WorkflowExecution? = null
/**
* The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal.
*/
public var input: kotlin.String? = null
/**
* The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.
*/
public var signalName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.WorkflowExecutionSignaledEventAttributes) : this() {
this.externalInitiatedEventId = x.externalInitiatedEventId
this.externalWorkflowExecution = x.externalWorkflowExecution
this.input = x.input
this.signalName = x.signalName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.WorkflowExecutionSignaledEventAttributes = WorkflowExecutionSignaledEventAttributes(this)
/**
* construct an [aws.sdk.kotlin.services.swf.model.WorkflowExecution] inside the given [block]
*/
public fun externalWorkflowExecution(block: aws.sdk.kotlin.services.swf.model.WorkflowExecution.Builder.() -> kotlin.Unit) {
this.externalWorkflowExecution = aws.sdk.kotlin.services.swf.model.WorkflowExecution.invoke(block)
}
internal fun correctErrors(): Builder {
if (signalName == null) signalName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy