#[non_exhaustive]pub struct ScheduleLambdaFunctionFailedEventAttributesBuilder { /* private fields */ }
Expand description
A builder for ScheduleLambdaFunctionFailedEventAttributes
.
Implementations§
source§impl ScheduleLambdaFunctionFailedEventAttributesBuilder
impl ScheduleLambdaFunctionFailedEventAttributesBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID provided in the ScheduleLambdaFunction
decision that failed.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID provided in the ScheduleLambdaFunction
decision that failed.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID provided in the ScheduleLambdaFunction
decision that failed.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the Lambda function.
This field is required.sourcepub fn cause(self, input: ScheduleLambdaFunctionFailedCause) -> Self
pub fn cause(self, input: ScheduleLambdaFunctionFailedCause) -> Self
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
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<ScheduleLambdaFunctionFailedCause>) -> Self
pub fn set_cause(self, input: Option<ScheduleLambdaFunctionFailedCause>) -> Self
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
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<ScheduleLambdaFunctionFailedCause>
pub fn get_cause(&self) -> &Option<ScheduleLambdaFunctionFailedCause>
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
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 LambdaFunctionCompleted
event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace 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 LambdaFunctionCompleted
event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace 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 LambdaFunctionCompleted
event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
sourcepub fn build(
self
) -> Result<ScheduleLambdaFunctionFailedEventAttributes, BuildError>
pub fn build( self ) -> Result<ScheduleLambdaFunctionFailedEventAttributes, BuildError>
Consumes the builder and constructs a ScheduleLambdaFunctionFailedEventAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduleLambdaFunctionFailedEventAttributesBuilder
impl Clone for ScheduleLambdaFunctionFailedEventAttributesBuilder
source§fn clone(&self) -> ScheduleLambdaFunctionFailedEventAttributesBuilder
fn clone(&self) -> ScheduleLambdaFunctionFailedEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScheduleLambdaFunctionFailedEventAttributesBuilder
impl Default for ScheduleLambdaFunctionFailedEventAttributesBuilder
source§fn default() -> ScheduleLambdaFunctionFailedEventAttributesBuilder
fn default() -> ScheduleLambdaFunctionFailedEventAttributesBuilder
source§impl PartialEq for ScheduleLambdaFunctionFailedEventAttributesBuilder
impl PartialEq for ScheduleLambdaFunctionFailedEventAttributesBuilder
source§fn eq(&self, other: &ScheduleLambdaFunctionFailedEventAttributesBuilder) -> bool
fn eq(&self, other: &ScheduleLambdaFunctionFailedEventAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.