Interface ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder,ExternalWorkflowExecutionCancelRequestedEventAttributes>,SdkBuilder<ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder,ExternalWorkflowExecutionCancelRequestedEventAttributes>,SdkPojo
- Enclosing class:
- ExternalWorkflowExecutionCancelRequestedEventAttributes
public static interface ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder extends SdkPojo, CopyableBuilder<ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder,ExternalWorkflowExecutionCancelRequestedEventAttributes>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExternalWorkflowExecutionCancelRequestedEventAttributes.BuilderinitiatedEventId(Long initiatedEventId)The ID of theRequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision to cancel this external workflow execution.default ExternalWorkflowExecutionCancelRequestedEventAttributes.BuilderworkflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)The external workflow execution to which the cancellation request was delivered.ExternalWorkflowExecutionCancelRequestedEventAttributes.BuilderworkflowExecution(WorkflowExecution workflowExecution)The external workflow execution to which the cancellation request was delivered.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
workflowExecution
ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder workflowExecution(WorkflowExecution workflowExecution)
The external workflow execution to which the cancellation request was delivered.
- Parameters:
workflowExecution- The external workflow execution to which the cancellation request was delivered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowExecution
default ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)
The external workflow execution to which the cancellation request was delivered.
This is a convenience method that creates an instance of theWorkflowExecution.Builderavoiding the need to create one manually viaWorkflowExecution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkflowExecution(WorkflowExecution).- Parameters:
workflowExecution- a consumer that will call methods onWorkflowExecution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
workflowExecution(WorkflowExecution)
-
initiatedEventId
ExternalWorkflowExecutionCancelRequestedEventAttributes.Builder initiatedEventId(Long initiatedEventId)
The ID of the
RequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
initiatedEventId- The ID of theRequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-