#[non_exhaustive]pub struct ScheduleActivityTaskDecisionAttributesBuilder { /* private fields */ }
Expand description
A builder for ScheduleActivityTaskDecisionAttributes
.
Implementations§
source§impl ScheduleActivityTaskDecisionAttributesBuilder
impl ScheduleActivityTaskDecisionAttributesBuilder
sourcepub fn activity_type(self, input: ActivityType) -> Self
pub fn activity_type(self, input: ActivityType) -> Self
The type of the activity task to schedule.
This field is required.sourcepub fn set_activity_type(self, input: Option<ActivityType>) -> Self
pub fn set_activity_type(self, input: Option<ActivityType>) -> Self
The type of the activity task to schedule.
sourcepub fn get_activity_type(&self) -> &Option<ActivityType>
pub fn get_activity_type(&self) -> &Option<ActivityType>
The type of the activity task to schedule.
sourcepub fn activity_id(self, input: impl Into<String>) -> Self
pub fn activity_id(self, input: impl Into<String>) -> Self
The activityId
of the activity task.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn set_activity_id(self, input: Option<String>) -> Self
pub fn set_activity_id(self, input: Option<String>) -> Self
The activityId
of the activity task.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn get_activity_id(&self) -> &Option<String>
pub fn get_activity_id(&self) -> &Option<String>
The activityId
of the activity task.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn control(self, input: impl Into<String>) -> Self
pub fn control(self, input: impl Into<String>) -> Self
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.
sourcepub fn set_control(self, input: Option<String>) -> Self
pub fn set_control(self, input: Option<String>) -> Self
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.
sourcepub fn get_control(&self) -> &Option<String>
pub fn get_control(&self) -> &Option<String>
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.
sourcepub fn schedule_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn schedule_to_close_timeout(self, input: impl Into<String>) -> Self
The maximum duration for this activity task.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn set_schedule_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_schedule_to_close_timeout(self, input: Option<String>) -> Self
The maximum duration for this activity task.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn get_schedule_to_close_timeout(&self) -> &Option<String>
pub fn get_schedule_to_close_timeout(&self) -> &Option<String>
The maximum duration for this activity task.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn task_list(self, input: TaskList) -> Self
pub fn task_list(self, input: TaskList) -> Self
If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList
registered with the activity type is used.
A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn set_task_list(self, input: Option<TaskList>) -> Self
pub fn set_task_list(self, input: Option<TaskList>) -> Self
If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList
registered with the activity type is used.
A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn get_task_list(&self) -> &Option<TaskList>
pub fn get_task_list(&self) -> &Option<TaskList>
If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList
registered with the activity type is used.
A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.
The specified string must not contain a :
(colon), /
(slash), |
(vertical bar), or any control characters (\u0000-\u001f
| \u007f-\u009f
). Also, it must not be the literal string arn
.
sourcepub fn task_priority(self, input: impl Into<String>) -> Self
pub fn task_priority(self, input: impl Into<String>) -> Self
If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType
. 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
If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType
. 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>
If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType
. 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 schedule_to_start_timeout(self, input: impl Into<String>) -> Self
pub fn schedule_to_start_timeout(self, input: impl Into<String>) -> Self
If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.
sourcepub fn set_schedule_to_start_timeout(self, input: Option<String>) -> Self
pub fn set_schedule_to_start_timeout(self, input: Option<String>) -> Self
If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.
sourcepub fn get_schedule_to_start_timeout(&self) -> &Option<String>
pub fn get_schedule_to_start_timeout(&self) -> &Option<String>
If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.
sourcepub fn start_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn start_to_close_timeout(self, input: impl Into<String>) -> Self
If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn set_start_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_start_to_close_timeout(self, input: Option<String>) -> Self
If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn get_start_to_close_timeout(&self) -> &Option<String>
pub fn get_start_to_close_timeout(&self) -> &Option<String>
If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.
sourcepub fn heartbeat_timeout(self, input: impl Into<String>) -> Self
pub fn heartbeat_timeout(self, input: impl Into<String>) -> Self
If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat
. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType
.
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_heartbeat_timeout(self, input: Option<String>) -> Self
pub fn set_heartbeat_timeout(self, input: Option<String>) -> Self
If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat
. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType
.
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_heartbeat_timeout(&self) -> &Option<String>
pub fn get_heartbeat_timeout(&self) -> &Option<String>
If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat
. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType
.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
sourcepub fn build(self) -> Result<ScheduleActivityTaskDecisionAttributes, BuildError>
pub fn build(self) -> Result<ScheduleActivityTaskDecisionAttributes, BuildError>
Consumes the builder and constructs a ScheduleActivityTaskDecisionAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduleActivityTaskDecisionAttributesBuilder
impl Clone for ScheduleActivityTaskDecisionAttributesBuilder
source§fn clone(&self) -> ScheduleActivityTaskDecisionAttributesBuilder
fn clone(&self) -> ScheduleActivityTaskDecisionAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScheduleActivityTaskDecisionAttributesBuilder
impl Default for ScheduleActivityTaskDecisionAttributesBuilder
source§fn default() -> ScheduleActivityTaskDecisionAttributesBuilder
fn default() -> ScheduleActivityTaskDecisionAttributesBuilder
source§impl PartialEq for ScheduleActivityTaskDecisionAttributesBuilder
impl PartialEq for ScheduleActivityTaskDecisionAttributesBuilder
source§fn eq(&self, other: &ScheduleActivityTaskDecisionAttributesBuilder) -> bool
fn eq(&self, other: &ScheduleActivityTaskDecisionAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.