#[non_exhaustive]pub struct TimerStartedEventAttributesBuilder { /* private fields */ }
Expand description
A builder for TimerStartedEventAttributes
.
Implementations§
source§impl TimerStartedEventAttributesBuilder
impl TimerStartedEventAttributesBuilder
sourcepub fn timer_id(self, input: impl Into<String>) -> Self
pub fn timer_id(self, input: impl Into<String>) -> Self
The unique ID of the timer that was started.
This field is required.sourcepub fn set_timer_id(self, input: Option<String>) -> Self
pub fn set_timer_id(self, input: Option<String>) -> Self
The unique ID of the timer that was started.
sourcepub fn get_timer_id(&self) -> &Option<String>
pub fn get_timer_id(&self) -> &Option<String>
The unique ID of the timer that was started.
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.
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.
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.
sourcepub fn start_to_fire_timeout(self, input: impl Into<String>) -> Self
pub fn start_to_fire_timeout(self, input: impl Into<String>) -> Self
The duration of time after which the timer fires.
The duration is specified in seconds, an integer greater than or equal to 0
.
sourcepub fn set_start_to_fire_timeout(self, input: Option<String>) -> Self
pub fn set_start_to_fire_timeout(self, input: Option<String>) -> Self
The duration of time after which the timer fires.
The duration is specified in seconds, an integer greater than or equal to 0
.
sourcepub fn get_start_to_fire_timeout(&self) -> &Option<String>
pub fn get_start_to_fire_timeout(&self) -> &Option<String>
The duration of time after which the timer fires.
The duration is specified in seconds, an integer greater than or equal to 0
.
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 StartTimer
decision for this activity task. 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 StartTimer
decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn get_decision_task_completed_event_id(&self) -> &Option<i64>
pub fn get_decision_task_completed_event_id(&self) -> &Option<i64>
The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the StartTimer
decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn build(self) -> Result<TimerStartedEventAttributes, BuildError>
pub fn build(self) -> Result<TimerStartedEventAttributes, BuildError>
Consumes the builder and constructs a TimerStartedEventAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimerStartedEventAttributesBuilder
impl Clone for TimerStartedEventAttributesBuilder
source§fn clone(&self) -> TimerStartedEventAttributesBuilder
fn clone(&self) -> TimerStartedEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TimerStartedEventAttributesBuilder
impl Default for TimerStartedEventAttributesBuilder
source§fn default() -> TimerStartedEventAttributesBuilder
fn default() -> TimerStartedEventAttributesBuilder
source§impl PartialEq for TimerStartedEventAttributesBuilder
impl PartialEq for TimerStartedEventAttributesBuilder
source§fn eq(&self, other: &TimerStartedEventAttributesBuilder) -> bool
fn eq(&self, other: &TimerStartedEventAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.