#[non_exhaustive]pub struct TimerFiredEventAttributesBuilder { /* private fields */ }
Expand description
A builder for TimerFiredEventAttributes
.
Implementations§
source§impl TimerFiredEventAttributesBuilder
impl TimerFiredEventAttributesBuilder
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 fired.
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 fired.
sourcepub fn get_timer_id(&self) -> &Option<String>
pub fn get_timer_id(&self) -> &Option<String>
The unique ID of the timer that fired.
sourcepub fn started_event_id(self, input: i64) -> Self
pub fn started_event_id(self, input: i64) -> Self
The ID of the TimerStarted
event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn set_started_event_id(self, input: Option<i64>) -> Self
pub fn set_started_event_id(self, input: Option<i64>) -> Self
The ID of the TimerStarted
event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn get_started_event_id(&self) -> &Option<i64>
pub fn get_started_event_id(&self) -> &Option<i64>
The ID of the TimerStarted
event that was recorded when this timer was started. 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<TimerFiredEventAttributes, BuildError>
pub fn build(self) -> Result<TimerFiredEventAttributes, BuildError>
Consumes the builder and constructs a TimerFiredEventAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimerFiredEventAttributesBuilder
impl Clone for TimerFiredEventAttributesBuilder
source§fn clone(&self) -> TimerFiredEventAttributesBuilder
fn clone(&self) -> TimerFiredEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TimerFiredEventAttributesBuilder
impl Default for TimerFiredEventAttributesBuilder
source§fn default() -> TimerFiredEventAttributesBuilder
fn default() -> TimerFiredEventAttributesBuilder
source§impl PartialEq for TimerFiredEventAttributesBuilder
impl PartialEq for TimerFiredEventAttributesBuilder
source§fn eq(&self, other: &TimerFiredEventAttributesBuilder) -> bool
fn eq(&self, other: &TimerFiredEventAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.