public static interface WorkflowExecutionCancelRequestedEventAttributes.Builder extends CopyableBuilder<WorkflowExecutionCancelRequestedEventAttributes.Builder,WorkflowExecutionCancelRequestedEventAttributes>
Modifier and Type | Method and Description |
---|---|
WorkflowExecutionCancelRequestedEventAttributes.Builder |
cause(String cause)
If set, indicates that the request to cancel the workflow execution was automatically generated, and
specifies the cause.
|
WorkflowExecutionCancelRequestedEventAttributes.Builder |
cause(WorkflowExecutionCancelRequestedCause cause)
If set, indicates that the request to cancel the workflow execution was automatically generated, and
specifies the cause.
|
WorkflowExecutionCancelRequestedEventAttributes.Builder |
externalInitiatedEventId(Long externalInitiatedEventId)
The ID of the
RequestCancelExternalWorkflowExecutionInitiated event corresponding to the
RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source
event with this ID can be found in the history of the source workflow execution. |
default WorkflowExecutionCancelRequestedEventAttributes.Builder |
externalWorkflowExecution(Consumer<WorkflowExecution.Builder> externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
|
WorkflowExecutionCancelRequestedEventAttributes.Builder |
externalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
|
copy
applyMutation, build
WorkflowExecutionCancelRequestedEventAttributes.Builder externalWorkflowExecution(WorkflowExecution externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
externalWorkflowExecution
- The external workflow execution for which the cancellation was requested.default WorkflowExecutionCancelRequestedEventAttributes.Builder externalWorkflowExecution(Consumer<WorkflowExecution.Builder> externalWorkflowExecution)
The external workflow execution for which the cancellation was requested.
This is a convenience that creates an instance of theWorkflowExecution.Builder
avoiding the need to
create one manually via WorkflowExecution.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to externalWorkflowExecution(WorkflowExecution)
.externalWorkflowExecution
- a consumer that will call methods on WorkflowExecution.Builder
externalWorkflowExecution(WorkflowExecution)
WorkflowExecutionCancelRequestedEventAttributes.Builder externalInitiatedEventId(Long externalInitiatedEventId)
The ID of the RequestCancelExternalWorkflowExecutionInitiated
event corresponding to the
RequestCancelExternalWorkflowExecution
decision to cancel 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.
externalInitiatedEventId
- The ID of the RequestCancelExternalWorkflowExecutionInitiated
event corresponding to the
RequestCancelExternalWorkflowExecution
decision to cancel 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.WorkflowExecutionCancelRequestedEventAttributes.Builder cause(String cause)
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and
specifies the cause. This happens if the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCause
,
WorkflowExecutionCancelRequestedCause
WorkflowExecutionCancelRequestedEventAttributes.Builder cause(WorkflowExecutionCancelRequestedCause cause)
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and
specifies the cause. This happens if the parent workflow execution times out or is terminated, and the
child policy is set to cancel child executions.WorkflowExecutionCancelRequestedCause
,
WorkflowExecutionCancelRequestedCause
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.