Interface StartChildWorkflowExecutionFailedEventAttributes.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StartChildWorkflowExecutionFailedEventAttributes.Builder,StartChildWorkflowExecutionFailedEventAttributes>,SdkBuilder<StartChildWorkflowExecutionFailedEventAttributes.Builder,StartChildWorkflowExecutionFailedEventAttributes>,SdkPojo
- Enclosing class:
- StartChildWorkflowExecutionFailedEventAttributes
@Mutable @NotThreadSafe public static interface StartChildWorkflowExecutionFailedEventAttributes.Builder extends SdkPojo, CopyableBuilder<StartChildWorkflowExecutionFailedEventAttributes.Builder,StartChildWorkflowExecutionFailedEventAttributes>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StartChildWorkflowExecutionFailedEventAttributes.Buildercause(String causeValue)The cause of the failure.StartChildWorkflowExecutionFailedEventAttributes.Buildercause(StartChildWorkflowExecutionFailedCause causeValue)The cause of the failure.StartChildWorkflowExecutionFailedEventAttributes.Buildercontrol(String control)The data attached to the event that the decider can use in subsequent workflow tasks.StartChildWorkflowExecutionFailedEventAttributes.BuilderdecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartChildWorkflowExecutionDecision to request this child workflow execution.StartChildWorkflowExecutionFailedEventAttributes.BuilderinitiatedEventId(Long initiatedEventId)When thecauseisWORKFLOW_ALREADY_RUNNING,initiatedEventIdis the ID of theStartChildWorkflowExecutionInitiatedevent that corresponds to theStartChildWorkflowExecutionDecision to start the workflow execution.StartChildWorkflowExecutionFailedEventAttributes.BuilderworkflowId(String workflowId)TheworkflowIdof the child workflow execution.default StartChildWorkflowExecutionFailedEventAttributes.BuilderworkflowType(Consumer<WorkflowType.Builder> workflowType)The workflow type provided in theStartChildWorkflowExecutionDecision that failed.StartChildWorkflowExecutionFailedEventAttributes.BuilderworkflowType(WorkflowType workflowType)The workflow type provided in theStartChildWorkflowExecutionDecision 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
workflowType
StartChildWorkflowExecutionFailedEventAttributes.Builder workflowType(WorkflowType workflowType)
The workflow type provided in the
StartChildWorkflowExecutionDecision that failed.- Parameters:
workflowType- The workflow type provided in theStartChildWorkflowExecutionDecision 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 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:
workflowType(WorkflowType)
-
cause
StartChildWorkflowExecutionFailedEventAttributes.Builder cause(String 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:
StartChildWorkflowExecutionFailedCause,StartChildWorkflowExecutionFailedCause
-
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:
StartChildWorkflowExecutionFailedCause,StartChildWorkflowExecutionFailedCause
-
workflowId
StartChildWorkflowExecutionFailedEventAttributes.Builder workflowId(String 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
StartChildWorkflowExecutionFailedEventAttributes.Builder initiatedEventId(Long 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
StartChildWorkflowExecutionFailedEventAttributes.Builder control(String 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.
-
-