Interface ScheduleActivityTaskFailedEventAttributes.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduleActivityTaskFailedEventAttributes.Builder,ScheduleActivityTaskFailedEventAttributes>,SdkBuilder<ScheduleActivityTaskFailedEventAttributes.Builder,ScheduleActivityTaskFailedEventAttributes>,SdkPojo
- Enclosing class:
- ScheduleActivityTaskFailedEventAttributes
@Mutable @NotThreadSafe public static interface ScheduleActivityTaskFailedEventAttributes.Builder extends SdkPojo, CopyableBuilder<ScheduleActivityTaskFailedEventAttributes.Builder,ScheduleActivityTaskFailedEventAttributes>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ScheduleActivityTaskFailedEventAttributes.BuilderactivityId(String activityId)The activityId provided in theScheduleActivityTaskdecision that failed.default ScheduleActivityTaskFailedEventAttributes.BuilderactivityType(Consumer<ActivityType.Builder> activityType)The activity type provided in theScheduleActivityTaskdecision that failed.ScheduleActivityTaskFailedEventAttributes.BuilderactivityType(ActivityType activityType)The activity type provided in theScheduleActivityTaskdecision that failed.ScheduleActivityTaskFailedEventAttributes.Buildercause(String causeValue)The cause of the failure.ScheduleActivityTaskFailedEventAttributes.Buildercause(ScheduleActivityTaskFailedCause causeValue)The cause of the failure.ScheduleActivityTaskFailedEventAttributes.BuilderdecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)The ID of theDecisionTaskCompletedevent corresponding to the decision that resulted in the scheduling of this activity task.-
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
-
activityType
ScheduleActivityTaskFailedEventAttributes.Builder activityType(ActivityType activityType)
The activity type provided in the
ScheduleActivityTaskdecision that failed.- Parameters:
activityType- The activity type provided in theScheduleActivityTaskdecision that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activityType
default ScheduleActivityTaskFailedEventAttributes.Builder activityType(Consumer<ActivityType.Builder> activityType)
The activity type provided in the
This is a convenience method that creates an instance of theScheduleActivityTaskdecision that failed.ActivityType.Builderavoiding the need to create one manually viaActivityType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactivityType(ActivityType).- Parameters:
activityType- a consumer that will call methods onActivityType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
activityType(ActivityType)
-
activityId
ScheduleActivityTaskFailedEventAttributes.Builder activityId(String activityId)
The activityId provided in the
ScheduleActivityTaskdecision that failed.- Parameters:
activityId- The activityId provided in theScheduleActivityTaskdecision that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cause
ScheduleActivityTaskFailedEventAttributes.Builder cause(String causeValue)
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
If
causeis set toOPERATION_NOT_PERMITTED, the decision failed because it lacked 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.If
causeis set toOPERATION_NOT_PERMITTED, the decision failed because it lacked 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:
ScheduleActivityTaskFailedCause,ScheduleActivityTaskFailedCause
-
cause
ScheduleActivityTaskFailedEventAttributes.Builder cause(ScheduleActivityTaskFailedCause causeValue)
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
If
causeis set toOPERATION_NOT_PERMITTED, the decision failed because it lacked 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.If
causeis set toOPERATION_NOT_PERMITTED, the decision failed because it lacked 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:
ScheduleActivityTaskFailedCause,ScheduleActivityTaskFailedCause
-
decisionTaskCompletedEventId
ScheduleActivityTaskFailedEventAttributes.Builder decisionTaskCompletedEventId(Long decisionTaskCompletedEventId)
The ID of the
DecisionTaskCompletedevent corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
decisionTaskCompletedEventId- The ID of theDecisionTaskCompletedevent corresponding to the decision that resulted in the scheduling of this activity task. 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.
-
-