#[non_exhaustive]pub struct StartTimerFailedEventAttributesBuilder { /* private fields */ }
Expand description
A builder for StartTimerFailedEventAttributes
.
Implementations§
source§impl StartTimerFailedEventAttributesBuilder
impl StartTimerFailedEventAttributesBuilder
sourcepub fn timer_id(self, input: impl Into<String>) -> Self
pub fn timer_id(self, input: impl Into<String>) -> Self
The timerId provided in the StartTimer
decision that failed.
sourcepub fn set_timer_id(self, input: Option<String>) -> Self
pub fn set_timer_id(self, input: Option<String>) -> Self
The timerId provided in the StartTimer
decision that failed.
sourcepub fn get_timer_id(&self) -> &Option<String>
pub fn get_timer_id(&self) -> &Option<String>
The timerId provided in the StartTimer
decision that failed.
sourcepub fn cause(self, input: StartTimerFailedCause) -> Self
pub fn cause(self, input: StartTimerFailedCause) -> Self
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
If cause
is set to OPERATION_NOT_PERMITTED
, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
sourcepub fn set_cause(self, input: Option<StartTimerFailedCause>) -> Self
pub fn set_cause(self, input: Option<StartTimerFailedCause>) -> Self
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
If cause
is set to OPERATION_NOT_PERMITTED
, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
sourcepub fn get_cause(&self) -> &Option<StartTimerFailedCause>
pub fn get_cause(&self) -> &Option<StartTimerFailedCause>
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
If cause
is set to OPERATION_NOT_PERMITTED
, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
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<StartTimerFailedEventAttributes, BuildError>
pub fn build(self) -> Result<StartTimerFailedEventAttributes, BuildError>
Consumes the builder and constructs a StartTimerFailedEventAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StartTimerFailedEventAttributesBuilder
impl Clone for StartTimerFailedEventAttributesBuilder
source§fn clone(&self) -> StartTimerFailedEventAttributesBuilder
fn clone(&self) -> StartTimerFailedEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartTimerFailedEventAttributesBuilder
impl Default for StartTimerFailedEventAttributesBuilder
source§fn default() -> StartTimerFailedEventAttributesBuilder
fn default() -> StartTimerFailedEventAttributesBuilder
source§impl PartialEq for StartTimerFailedEventAttributesBuilder
impl PartialEq for StartTimerFailedEventAttributesBuilder
source§fn eq(&self, other: &StartTimerFailedEventAttributesBuilder) -> bool
fn eq(&self, other: &StartTimerFailedEventAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.