Interface StartChildWorkflowExecutionFailedEventAttributes.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<StartChildWorkflowExecutionFailedEventAttributes.Builder,
,StartChildWorkflowExecutionFailedEventAttributes> SdkBuilder<StartChildWorkflowExecutionFailedEventAttributes.Builder,
,StartChildWorkflowExecutionFailedEventAttributes> SdkPojo
- Enclosing class:
StartChildWorkflowExecutionFailedEventAttributes
-
Method Summary
Modifier and TypeMethodDescriptionThe cause of the failure.cause
(StartChildWorkflowExecutionFailedCause causeValue) The cause of the failure.The data attached to the event that the decider can use in subsequent workflow tasks.decisionTaskCompletedEventId
(Long decisionTaskCompletedEventId) The ID of theDecisionTaskCompleted
event corresponding to the decision task that resulted in theStartChildWorkflowExecution
Decision to request this child workflow execution.initiatedEventId
(Long initiatedEventId) When thecause
isWORKFLOW_ALREADY_RUNNING
,initiatedEventId
is the ID of theStartChildWorkflowExecutionInitiated
event that corresponds to theStartChildWorkflowExecution
Decision to start the workflow execution.workflowId
(String workflowId) TheworkflowId
of the child workflow execution.workflowType
(Consumer<WorkflowType.Builder> workflowType) The workflow type provided in theStartChildWorkflowExecution
Decision that failed.workflowType
(WorkflowType workflowType) The workflow type provided in theStartChildWorkflowExecution
Decision that failed.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 Details
-
workflowType
The workflow type provided in the
StartChildWorkflowExecution
Decision that failed.- Parameters:
workflowType
- The workflow type provided in theStartChildWorkflowExecution
Decision that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowType
default StartChildWorkflowExecutionFailedEventAttributes.Builder workflowType(Consumer<WorkflowType.Builder> workflowType) The workflow type provided in the
This is a convenience method that creates an instance of theStartChildWorkflowExecution
Decision that failed.WorkflowType.Builder
avoiding the need to create one manually viaWorkflowType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkflowType(WorkflowType)
.- Parameters:
workflowType
- a consumer that will call methods onWorkflowType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cause
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
When
cause
is set toOPERATION_NOT_PERMITTED
, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.- Parameters:
causeValue
- The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.When
cause
is set toOPERATION_NOT_PERMITTED
, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cause
StartChildWorkflowExecutionFailedEventAttributes.Builder cause(StartChildWorkflowExecutionFailedCause causeValue) The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
When
cause
is set toOPERATION_NOT_PERMITTED
, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.- Parameters:
causeValue
- The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.When
cause
is set toOPERATION_NOT_PERMITTED
, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workflowId
The
workflowId
of the child workflow execution.- Parameters:
workflowId
- TheworkflowId
of the child workflow execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initiatedEventId
When the
cause
isWORKFLOW_ALREADY_RUNNING
,initiatedEventId
is the ID of theStartChildWorkflowExecutionInitiated
event that corresponds to theStartChildWorkflowExecution
Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.When the
cause
isn'tWORKFLOW_ALREADY_RUNNING
,initiatedEventId
is set to0
because theStartChildWorkflowExecutionInitiated
event doesn't exist.- Parameters:
initiatedEventId
- When thecause
isWORKFLOW_ALREADY_RUNNING
,initiatedEventId
is the ID of theStartChildWorkflowExecutionInitiated
event that corresponds to theStartChildWorkflowExecution
Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.When the
cause
isn'tWORKFLOW_ALREADY_RUNNING
,initiatedEventId
is set to0
because theStartChildWorkflowExecutionInitiated
event doesn't exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
decisionTaskCompletedEventId
StartChildWorkflowExecutionFailedEventAttributes.Builder decisionTaskCompletedEventId(Long decisionTaskCompletedEventId) The ID of the
DecisionTaskCompleted
event corresponding to the decision task that resulted in theStartChildWorkflowExecution
Decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events.- Parameters:
decisionTaskCompletedEventId
- The ID of theDecisionTaskCompleted
event corresponding to the decision task that resulted in theStartChildWorkflowExecution
Decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
control
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.
- Parameters:
control
- The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-