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
source§fn eq(&self, other: &LambdaActivityBuilder) -> bool
fn eq(&self, other: &LambdaActivityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.