Struct aws_sdk_iotanalytics::types::builders::LambdaActivityBuilder
source · #[non_exhaustive]pub struct LambdaActivityBuilder { /* private fields */ }Expand description
A builder for LambdaActivity.
Implementations§
source§impl LambdaActivityBuilder
impl LambdaActivityBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the lambda activity.
This field is required.sourcepub fn lambda_name(self, input: impl Into<String>) -> Self
pub fn lambda_name(self, input: impl Into<String>) -> Self
The name of the Lambda function that is run on the message.
This field is required.sourcepub fn set_lambda_name(self, input: Option<String>) -> Self
pub fn set_lambda_name(self, input: Option<String>) -> Self
The name of the Lambda function that is run on the message.
sourcepub fn get_lambda_name(&self) -> &Option<String>
pub fn get_lambda_name(&self) -> &Option<String>
The name of the Lambda function that is run on the message.
sourcepub fn batch_size(self, input: i32) -> Self
pub fn batch_size(self, input: i32) -> Self
The number of messages passed to the Lambda function for processing.
The Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
This field is required.sourcepub fn set_batch_size(self, input: Option<i32>) -> Self
pub fn set_batch_size(self, input: Option<i32>) -> Self
The number of messages passed to the Lambda function for processing.
The Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
sourcepub fn get_batch_size(&self) -> &Option<i32>
pub fn get_batch_size(&self) -> &Option<i32>
The number of messages passed to the Lambda function for processing.
The Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
sourcepub fn build(self) -> Result<LambdaActivity, BuildError>
pub fn build(self) -> Result<LambdaActivity, BuildError>
Consumes the builder and constructs a LambdaActivity.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LambdaActivityBuilder
impl Clone for LambdaActivityBuilder
source§fn clone(&self) -> LambdaActivityBuilder
fn clone(&self) -> LambdaActivityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LambdaActivityBuilder
impl Debug for LambdaActivityBuilder
source§impl Default for LambdaActivityBuilder
impl Default for LambdaActivityBuilder
source§fn default() -> LambdaActivityBuilder
fn default() -> LambdaActivityBuilder
source§impl PartialEq for LambdaActivityBuilder
impl PartialEq for LambdaActivityBuilder
impl StructuralPartialEq for LambdaActivityBuilder
Auto Trait Implementations§
impl Freeze for LambdaActivityBuilder
impl RefUnwindSafe for LambdaActivityBuilder
impl Send for LambdaActivityBuilder
impl Sync for LambdaActivityBuilder
impl Unpin for LambdaActivityBuilder
impl UnwindSafe for LambdaActivityBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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