#[non_exhaustive]pub struct ScheduleActivityTaskFailedEventAttributesBuilder { /* private fields */ }
Expand description
A builder for ScheduleActivityTaskFailedEventAttributes
.
Implementations§
source§impl ScheduleActivityTaskFailedEventAttributesBuilder
impl ScheduleActivityTaskFailedEventAttributesBuilder
sourcepub fn activity_type(self, input: ActivityType) -> Self
pub fn activity_type(self, input: ActivityType) -> Self
The activity type provided in the ScheduleActivityTask
decision that failed.
sourcepub fn set_activity_type(self, input: Option<ActivityType>) -> Self
pub fn set_activity_type(self, input: Option<ActivityType>) -> Self
The activity type provided in the ScheduleActivityTask
decision that failed.
sourcepub fn get_activity_type(&self) -> &Option<ActivityType>
pub fn get_activity_type(&self) -> &Option<ActivityType>
The activity type provided in the ScheduleActivityTask
decision that failed.
sourcepub fn activity_id(self, input: impl Into<String>) -> Self
pub fn activity_id(self, input: impl Into<String>) -> Self
The activityId provided in the ScheduleActivityTask
decision that failed.
sourcepub fn set_activity_id(self, input: Option<String>) -> Self
pub fn set_activity_id(self, input: Option<String>) -> Self
The activityId provided in the ScheduleActivityTask
decision that failed.
sourcepub fn get_activity_id(&self) -> &Option<String>
pub fn get_activity_id(&self) -> &Option<String>
The activityId provided in the ScheduleActivityTask
decision that failed.
sourcepub fn cause(self, input: ScheduleActivityTaskFailedCause) -> Self
pub fn cause(self, input: ScheduleActivityTaskFailedCause) -> 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<ScheduleActivityTaskFailedCause>) -> Self
pub fn set_cause(self, input: Option<ScheduleActivityTaskFailedCause>) -> 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<ScheduleActivityTaskFailedCause>
pub fn get_cause(&self) -> &Option<ScheduleActivityTaskFailedCause>
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 that resulted in the scheduling of 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 that resulted in the scheduling of 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 that resulted in the scheduling of 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<ScheduleActivityTaskFailedEventAttributes, BuildError>
pub fn build( self ) -> Result<ScheduleActivityTaskFailedEventAttributes, BuildError>
Consumes the builder and constructs a ScheduleActivityTaskFailedEventAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduleActivityTaskFailedEventAttributesBuilder
impl Clone for ScheduleActivityTaskFailedEventAttributesBuilder
source§fn clone(&self) -> ScheduleActivityTaskFailedEventAttributesBuilder
fn clone(&self) -> ScheduleActivityTaskFailedEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScheduleActivityTaskFailedEventAttributesBuilder
impl Default for ScheduleActivityTaskFailedEventAttributesBuilder
source§fn default() -> ScheduleActivityTaskFailedEventAttributesBuilder
fn default() -> ScheduleActivityTaskFailedEventAttributesBuilder
source§impl PartialEq for ScheduleActivityTaskFailedEventAttributesBuilder
impl PartialEq for ScheduleActivityTaskFailedEventAttributesBuilder
source§fn eq(&self, other: &ScheduleActivityTaskFailedEventAttributesBuilder) -> bool
fn eq(&self, other: &ScheduleActivityTaskFailedEventAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScheduleActivityTaskFailedEventAttributesBuilder
Auto Trait Implementations§
impl Freeze for ScheduleActivityTaskFailedEventAttributesBuilder
impl RefUnwindSafe for ScheduleActivityTaskFailedEventAttributesBuilder
impl Send for ScheduleActivityTaskFailedEventAttributesBuilder
impl Sync for ScheduleActivityTaskFailedEventAttributesBuilder
impl Unpin for ScheduleActivityTaskFailedEventAttributesBuilder
impl UnwindSafe for ScheduleActivityTaskFailedEventAttributesBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more