Struct aws_sdk_s3control::model::lambda_invoke_operation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LambdaInvokeOperation
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.
sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.
Examples found in repository?
src/xml_deser.rs (line 4462)
4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469
pub fn deser_structure_crate_model_lambda_invoke_operation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LambdaInvokeOperation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LambdaInvokeOperation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("FunctionArn") /* FunctionArn com.amazonaws.s3control#LambdaInvokeOperation$FunctionArn */ => {
let var_202 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_function_arn(var_202);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> LambdaInvokeOperation
pub fn build(self) -> LambdaInvokeOperation
Consumes the builder and constructs a LambdaInvokeOperation
.
Examples found in repository?
src/xml_deser.rs (line 4468)
4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469
pub fn deser_structure_crate_model_lambda_invoke_operation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LambdaInvokeOperation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LambdaInvokeOperation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("FunctionArn") /* FunctionArn com.amazonaws.s3control#LambdaInvokeOperation$FunctionArn */ => {
let var_202 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_function_arn(var_202);
}
,
_ => {}
}
}
Ok(builder.build())
}