Struct aws_sdk_swf::model::workflow_execution_info::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for WorkflowExecutionInfo
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn execution(self, input: WorkflowExecution) -> Self
pub fn execution(self, input: WorkflowExecution) -> Self
The workflow execution this information is about.
sourcepub fn set_execution(self, input: Option<WorkflowExecution>) -> Self
pub fn set_execution(self, input: Option<WorkflowExecution>) -> Self
The workflow execution this information is about.
sourcepub fn workflow_type(self, input: WorkflowType) -> Self
pub fn workflow_type(self, input: WorkflowType) -> Self
The type of the workflow execution.
sourcepub fn set_workflow_type(self, input: Option<WorkflowType>) -> Self
pub fn set_workflow_type(self, input: Option<WorkflowType>) -> Self
The type of the workflow execution.
sourcepub fn start_timestamp(self, input: DateTime) -> Self
pub fn start_timestamp(self, input: DateTime) -> Self
The time when the execution was started.
sourcepub fn set_start_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_start_timestamp(self, input: Option<DateTime>) -> Self
The time when the execution was started.
sourcepub fn close_timestamp(self, input: DateTime) -> Self
pub fn close_timestamp(self, input: DateTime) -> Self
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
sourcepub fn set_close_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_close_timestamp(self, input: Option<DateTime>) -> Self
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
sourcepub fn execution_status(self, input: ExecutionStatus) -> Self
pub fn execution_status(self, input: ExecutionStatus) -> Self
The current status of the execution.
sourcepub fn set_execution_status(self, input: Option<ExecutionStatus>) -> Self
pub fn set_execution_status(self, input: Option<ExecutionStatus>) -> Self
The current status of the execution.
sourcepub fn close_status(self, input: CloseStatus) -> Self
pub fn close_status(self, input: CloseStatus) -> Self
If the execution status is closed then this specifies how the execution was closed:
-
COMPLETED
– the execution was successfully completed. -
CANCELED
– the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed. -
TERMINATED
– the execution was force terminated. -
FAILED
– the execution failed to complete. -
TIMED_OUT
– the execution did not complete in the alloted time and was automatically timed out. -
CONTINUED_AS_NEW
– the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
sourcepub fn set_close_status(self, input: Option<CloseStatus>) -> Self
pub fn set_close_status(self, input: Option<CloseStatus>) -> Self
If the execution status is closed then this specifies how the execution was closed:
-
COMPLETED
– the execution was successfully completed. -
CANCELED
– the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed. -
TERMINATED
– the execution was force terminated. -
FAILED
– the execution failed to complete. -
TIMED_OUT
– the execution did not complete in the alloted time and was automatically timed out. -
CONTINUED_AS_NEW
– the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
sourcepub fn parent(self, input: WorkflowExecution) -> Self
pub fn parent(self, input: WorkflowExecution) -> Self
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
sourcepub fn set_parent(self, input: Option<WorkflowExecution>) -> Self
pub fn set_parent(self, input: Option<WorkflowExecution>) -> Self
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
sourcepub fn tag_list(self, input: impl Into<String>) -> Self
pub fn tag_list(self, input: impl Into<String>) -> Self
Appends an item to tag_list
.
To override the contents of this collection use set_tag_list
.
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
sourcepub fn set_tag_list(self, input: Option<Vec<String>>) -> Self
pub fn set_tag_list(self, input: Option<Vec<String>>) -> Self
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
sourcepub fn cancel_requested(self, input: bool) -> Self
pub fn cancel_requested(self, input: bool) -> Self
Set to true if a cancellation is requested for this workflow execution.
sourcepub fn set_cancel_requested(self, input: Option<bool>) -> Self
pub fn set_cancel_requested(self, input: Option<bool>) -> Self
Set to true if a cancellation is requested for this workflow execution.
sourcepub fn build(self) -> WorkflowExecutionInfo
pub fn build(self) -> WorkflowExecutionInfo
Consumes the builder and constructs a WorkflowExecutionInfo
.