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 theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartChildWorkflowExecutionDecision to request this child workflow execution.initiatedEventId(Long initiatedEventId) When thecauseisWORKFLOW_ALREADY_RUNNING,initiatedEventIdis the ID of theStartChildWorkflowExecutionInitiatedevent that corresponds to theStartChildWorkflowExecutionDecision to start the workflow execution.workflowId(String workflowId) TheworkflowIdof the child workflow execution.workflowType(Consumer<WorkflowType.Builder> workflowType) The workflow type provided in theStartChildWorkflowExecutionDecision that failed.workflowType(WorkflowType workflowType) The workflow type provided in theStartChildWorkflowExecutionDecision that failed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
workflowType
-
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 theStartChildWorkflowExecutionDecision that failed.WorkflowType.Builderavoiding the need to create one manually viaWorkflowType.builder().When the
Consumercompletes,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
causeis 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
causeis 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
causeis 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
causeis 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
workflowIdof the child workflow execution.- Parameters:
workflowId- TheworkflowIdof the child workflow execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initiatedEventId
When the
causeisWORKFLOW_ALREADY_RUNNING,initiatedEventIdis the ID of theStartChildWorkflowExecutionInitiatedevent that corresponds to theStartChildWorkflowExecutionDecision 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
causeisn'tWORKFLOW_ALREADY_RUNNING,initiatedEventIdis set to0because theStartChildWorkflowExecutionInitiatedevent doesn't exist.- Parameters:
initiatedEventId- When thecauseisWORKFLOW_ALREADY_RUNNING,initiatedEventIdis the ID of theStartChildWorkflowExecutionInitiatedevent that corresponds to theStartChildWorkflowExecutionDecision 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
causeisn'tWORKFLOW_ALREADY_RUNNING,initiatedEventIdis set to0because theStartChildWorkflowExecutionInitiatedevent 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
DecisionTaskCompletedevent corresponding to the decision task that resulted in theStartChildWorkflowExecutionDecision 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 theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartChildWorkflowExecutionDecision 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.
-