aws_sdk_sfn/types/
_execution_succeeded_event_details.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains details about the successful termination of the execution.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
6pub struct ExecutionSucceededEventDetails {
7    /// <p>The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
8    pub output: ::std::option::Option<::std::string::String>,
9    /// <p>Contains details about the output of an execution history event.</p>
10    pub output_details: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>,
11}
12impl ExecutionSucceededEventDetails {
13    /// <p>The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
14    pub fn output(&self) -> ::std::option::Option<&str> {
15        self.output.as_deref()
16    }
17    /// <p>Contains details about the output of an execution history event.</p>
18    pub fn output_details(&self) -> ::std::option::Option<&crate::types::HistoryEventExecutionDataDetails> {
19        self.output_details.as_ref()
20    }
21}
22impl ::std::fmt::Debug for ExecutionSucceededEventDetails {
23    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
24        let mut formatter = f.debug_struct("ExecutionSucceededEventDetails");
25        formatter.field("output", &"*** Sensitive Data Redacted ***");
26        formatter.field("output_details", &self.output_details);
27        formatter.finish()
28    }
29}
30impl ExecutionSucceededEventDetails {
31    /// Creates a new builder-style object to manufacture [`ExecutionSucceededEventDetails`](crate::types::ExecutionSucceededEventDetails).
32    pub fn builder() -> crate::types::builders::ExecutionSucceededEventDetailsBuilder {
33        crate::types::builders::ExecutionSucceededEventDetailsBuilder::default()
34    }
35}
36
37/// A builder for [`ExecutionSucceededEventDetails`](crate::types::ExecutionSucceededEventDetails).
38#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
39#[non_exhaustive]
40pub struct ExecutionSucceededEventDetailsBuilder {
41    pub(crate) output: ::std::option::Option<::std::string::String>,
42    pub(crate) output_details: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>,
43}
44impl ExecutionSucceededEventDetailsBuilder {
45    /// <p>The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
46    pub fn output(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47        self.output = ::std::option::Option::Some(input.into());
48        self
49    }
50    /// <p>The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
51    pub fn set_output(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52        self.output = input;
53        self
54    }
55    /// <p>The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
56    pub fn get_output(&self) -> &::std::option::Option<::std::string::String> {
57        &self.output
58    }
59    /// <p>Contains details about the output of an execution history event.</p>
60    pub fn output_details(mut self, input: crate::types::HistoryEventExecutionDataDetails) -> Self {
61        self.output_details = ::std::option::Option::Some(input);
62        self
63    }
64    /// <p>Contains details about the output of an execution history event.</p>
65    pub fn set_output_details(mut self, input: ::std::option::Option<crate::types::HistoryEventExecutionDataDetails>) -> Self {
66        self.output_details = input;
67        self
68    }
69    /// <p>Contains details about the output of an execution history event.</p>
70    pub fn get_output_details(&self) -> &::std::option::Option<crate::types::HistoryEventExecutionDataDetails> {
71        &self.output_details
72    }
73    /// Consumes the builder and constructs a [`ExecutionSucceededEventDetails`](crate::types::ExecutionSucceededEventDetails).
74    pub fn build(self) -> crate::types::ExecutionSucceededEventDetails {
75        crate::types::ExecutionSucceededEventDetails {
76            output: self.output,
77            output_details: self.output_details,
78        }
79    }
80}
81impl ::std::fmt::Debug for ExecutionSucceededEventDetailsBuilder {
82    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
83        let mut formatter = f.debug_struct("ExecutionSucceededEventDetailsBuilder");
84        formatter.field("output", &"*** Sensitive Data Redacted ***");
85        formatter.field("output_details", &self.output_details);
86        formatter.finish()
87    }
88}