#[non_exhaustive]pub struct WorkflowExecutionConfigurationBuilder { /* private fields */ }Expand description
A builder for WorkflowExecutionConfiguration.
Implementations§
source§impl WorkflowExecutionConfigurationBuilder
impl WorkflowExecutionConfigurationBuilder
sourcepub fn task_start_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn task_start_to_close_timeout(self, input: impl Into<String>) -> Self
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn set_task_start_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_task_start_to_close_timeout(self, input: Option<String>) -> Self
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn get_task_start_to_close_timeout(&self) -> &Option<String>
pub fn get_task_start_to_close_timeout(&self) -> &Option<String>
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn execution_start_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn execution_start_to_close_timeout(self, input: impl Into<String>) -> Self
The total duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn set_execution_start_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_execution_start_to_close_timeout(self, input: Option<String>) -> Self
The total duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn get_execution_start_to_close_timeout(&self) -> &Option<String>
pub fn get_execution_start_to_close_timeout(&self) -> &Option<String>
The total duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.
sourcepub fn task_list(self, input: TaskList) -> Self
pub fn task_list(self, input: TaskList) -> Self
The task list used for the decision tasks generated for this workflow execution.
This field is required.sourcepub fn set_task_list(self, input: Option<TaskList>) -> Self
pub fn set_task_list(self, input: Option<TaskList>) -> Self
The task list used for the decision tasks generated for this workflow execution.
sourcepub fn get_task_list(&self) -> &Option<TaskList>
pub fn get_task_list(&self) -> &Option<TaskList>
The task list used for the decision tasks generated for this workflow execution.
sourcepub fn task_priority(self, input: impl Into<String>) -> Self
pub fn task_priority(self, input: impl Into<String>) -> Self
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
sourcepub fn set_task_priority(self, input: Option<String>) -> Self
pub fn set_task_priority(self, input: Option<String>) -> Self
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
sourcepub fn get_task_priority(&self) -> &Option<String>
pub fn get_task_priority(&self) -> &Option<String>
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
sourcepub fn child_policy(self, input: ChildPolicy) -> Self
pub fn child_policy(self, input: ChildPolicy) -> Self
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
-
TERMINATE– The child executions are terminated. -
REQUEST_CANCEL– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequestedevent in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON– No action is taken. The child executions continue to run.
sourcepub fn set_child_policy(self, input: Option<ChildPolicy>) -> Self
pub fn set_child_policy(self, input: Option<ChildPolicy>) -> Self
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
-
TERMINATE– The child executions are terminated. -
REQUEST_CANCEL– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequestedevent in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON– No action is taken. The child executions continue to run.
sourcepub fn get_child_policy(&self) -> &Option<ChildPolicy>
pub fn get_child_policy(&self) -> &Option<ChildPolicy>
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
-
TERMINATE– The child executions are terminated. -
REQUEST_CANCEL– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequestedevent in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON– No action is taken. The child executions continue to run.
sourcepub fn lambda_role(self, input: impl Into<String>) -> Self
pub fn lambda_role(self, input: impl Into<String>) -> Self
The IAM role attached to the child workflow execution.
sourcepub fn set_lambda_role(self, input: Option<String>) -> Self
pub fn set_lambda_role(self, input: Option<String>) -> Self
The IAM role attached to the child workflow execution.
sourcepub fn get_lambda_role(&self) -> &Option<String>
pub fn get_lambda_role(&self) -> &Option<String>
The IAM role attached to the child workflow execution.
sourcepub fn build(self) -> Result<WorkflowExecutionConfiguration, BuildError>
pub fn build(self) -> Result<WorkflowExecutionConfiguration, BuildError>
Consumes the builder and constructs a WorkflowExecutionConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WorkflowExecutionConfigurationBuilder
impl Clone for WorkflowExecutionConfigurationBuilder
source§fn clone(&self) -> WorkflowExecutionConfigurationBuilder
fn clone(&self) -> WorkflowExecutionConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for WorkflowExecutionConfigurationBuilder
impl Default for WorkflowExecutionConfigurationBuilder
source§fn default() -> WorkflowExecutionConfigurationBuilder
fn default() -> WorkflowExecutionConfigurationBuilder
source§impl PartialEq for WorkflowExecutionConfigurationBuilder
impl PartialEq for WorkflowExecutionConfigurationBuilder
source§fn eq(&self, other: &WorkflowExecutionConfigurationBuilder) -> bool
fn eq(&self, other: &WorkflowExecutionConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.