pub struct Builder { /* private fields */ }
Expand description
A builder for WorkflowExecutionFailedEventAttributes
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
The descriptive reason provided for the failure.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The descriptive reason provided for the failure.
sourcepub fn set_details(self, input: Option<String>) -> Self
pub fn set_details(self, input: Option<String>) -> Self
The details of the failure.
sourcepub fn decision_task_completed_event_id(self, input: i64) -> Self
pub fn decision_task_completed_event_id(self, input: i64) -> Self
The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the FailWorkflowExecution
decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn set_decision_task_completed_event_id(self, input: Option<i64>) -> Self
pub fn set_decision_task_completed_event_id(self, input: Option<i64>) -> Self
The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the FailWorkflowExecution
decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn build(self) -> WorkflowExecutionFailedEventAttributes
pub fn build(self) -> WorkflowExecutionFailedEventAttributes
Consumes the builder and constructs a WorkflowExecutionFailedEventAttributes
.