1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains details about a Lambda function that successfully terminated during an execution.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct LambdaFunctionSucceededEventDetails {
    /// <p>The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
    pub output: ::std::option::Option<::std::string::String>,
    /// <p>Contains details about the output of an execution history event.</p>
    pub output_details: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>,
}
impl LambdaFunctionSucceededEventDetails {
    /// <p>The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
    pub fn output(&self) -> ::std::option::Option<&str> {
        self.output.as_deref()
    }
    /// <p>Contains details about the output of an execution history event.</p>
    pub fn output_details(&self) -> ::std::option::Option<&crate::types::HistoryEventExecutionDataDetails> {
        self.output_details.as_ref()
    }
}
impl ::std::fmt::Debug for LambdaFunctionSucceededEventDetails {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("LambdaFunctionSucceededEventDetails");
        formatter.field("output", &"*** Sensitive Data Redacted ***");
        formatter.field("output_details", &self.output_details);
        formatter.finish()
    }
}
impl LambdaFunctionSucceededEventDetails {
    /// Creates a new builder-style object to manufacture [`LambdaFunctionSucceededEventDetails`](crate::types::LambdaFunctionSucceededEventDetails).
    pub fn builder() -> crate::types::builders::LambdaFunctionSucceededEventDetailsBuilder {
        crate::types::builders::LambdaFunctionSucceededEventDetailsBuilder::default()
    }
}

/// A builder for [`LambdaFunctionSucceededEventDetails`](crate::types::LambdaFunctionSucceededEventDetails).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct LambdaFunctionSucceededEventDetailsBuilder {
    pub(crate) output: ::std::option::Option<::std::string::String>,
    pub(crate) output_details: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>,
}
impl LambdaFunctionSucceededEventDetailsBuilder {
    /// <p>The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
    pub fn output(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.output = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
    pub fn set_output(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.output = input;
        self
    }
    /// <p>The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
    pub fn get_output(&self) -> &::std::option::Option<::std::string::String> {
        &self.output
    }
    /// <p>Contains details about the output of an execution history event.</p>
    pub fn output_details(mut self, input: crate::types::HistoryEventExecutionDataDetails) -> Self {
        self.output_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about the output of an execution history event.</p>
    pub fn set_output_details(mut self, input: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>) -> Self {
        self.output_details = input;
        self
    }
    /// <p>Contains details about the output of an execution history event.</p>
    pub fn get_output_details(&self) -> &::std::option::Option<crate::types::HistoryEventExecutionDataDetails> {
        &self.output_details
    }
    /// Consumes the builder and constructs a [`LambdaFunctionSucceededEventDetails`](crate::types::LambdaFunctionSucceededEventDetails).
    pub fn build(self) -> crate::types::LambdaFunctionSucceededEventDetails {
        crate::types::LambdaFunctionSucceededEventDetails {
            output: self.output,
            output_details: self.output_details,
        }
    }
}
impl ::std::fmt::Debug for LambdaFunctionSucceededEventDetailsBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("LambdaFunctionSucceededEventDetailsBuilder");
        formatter.field("output", &"*** Sensitive Data Redacted ***");
        formatter.field("output_details", &self.output_details);
        formatter.finish()
    }
}