Struct aws_sdk_iotevents::types::builders::LambdaActionBuilder
source · #[non_exhaustive]pub struct LambdaActionBuilder { /* private fields */ }
Expand description
A builder for LambdaAction
.
Implementations§
source§impl LambdaActionBuilder
impl LambdaActionBuilder
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The ARN of the Lambda function that is executed.
This field is required.sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The ARN of the Lambda function that is executed.
sourcepub fn get_function_arn(&self) -> &Option<String>
pub fn get_function_arn(&self) -> &Option<String>
The ARN of the Lambda function that is executed.
sourcepub fn payload(self, input: Payload) -> Self
pub fn payload(self, input: Payload) -> Self
You can configure the action payload when you send a message to a Lambda function.
sourcepub fn set_payload(self, input: Option<Payload>) -> Self
pub fn set_payload(self, input: Option<Payload>) -> Self
You can configure the action payload when you send a message to a Lambda function.
sourcepub fn get_payload(&self) -> &Option<Payload>
pub fn get_payload(&self) -> &Option<Payload>
You can configure the action payload when you send a message to a Lambda function.
sourcepub fn build(self) -> Result<LambdaAction, BuildError>
pub fn build(self) -> Result<LambdaAction, BuildError>
Consumes the builder and constructs a LambdaAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LambdaActionBuilder
impl Clone for LambdaActionBuilder
source§fn clone(&self) -> LambdaActionBuilder
fn clone(&self) -> LambdaActionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LambdaActionBuilder
impl Debug for LambdaActionBuilder
source§impl Default for LambdaActionBuilder
impl Default for LambdaActionBuilder
source§fn default() -> LambdaActionBuilder
fn default() -> LambdaActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for LambdaActionBuilder
impl PartialEq for LambdaActionBuilder
source§fn eq(&self, other: &LambdaActionBuilder) -> bool
fn eq(&self, other: &LambdaActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LambdaActionBuilder
Auto Trait Implementations§
impl Freeze for LambdaActionBuilder
impl RefUnwindSafe for LambdaActionBuilder
impl Send for LambdaActionBuilder
impl Sync for LambdaActionBuilder
impl Unpin for LambdaActionBuilder
impl UnwindSafe for LambdaActionBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.