Struct aws_sdk_swf::model::workflow_execution_info::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for WorkflowExecutionInfo
Implementations
sourceimpl 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
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more