aws_sdk_textract/types/
_human_loop_activation_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct HumanLoopActivationOutput {
7 pub human_loop_arn: ::std::option::Option<::std::string::String>,
9 pub human_loop_activation_reasons: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
11 pub human_loop_activation_conditions_evaluation_results: ::std::option::Option<::std::string::String>,
13}
14impl HumanLoopActivationOutput {
15 pub fn human_loop_arn(&self) -> ::std::option::Option<&str> {
17 self.human_loop_arn.as_deref()
18 }
19 pub fn human_loop_activation_reasons(&self) -> &[::std::string::String] {
23 self.human_loop_activation_reasons.as_deref().unwrap_or_default()
24 }
25 pub fn human_loop_activation_conditions_evaluation_results(&self) -> ::std::option::Option<&str> {
27 self.human_loop_activation_conditions_evaluation_results.as_deref()
28 }
29}
30impl HumanLoopActivationOutput {
31 pub fn builder() -> crate::types::builders::HumanLoopActivationOutputBuilder {
33 crate::types::builders::HumanLoopActivationOutputBuilder::default()
34 }
35}
36
37#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
39#[non_exhaustive]
40pub struct HumanLoopActivationOutputBuilder {
41 pub(crate) human_loop_arn: ::std::option::Option<::std::string::String>,
42 pub(crate) human_loop_activation_reasons: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
43 pub(crate) human_loop_activation_conditions_evaluation_results: ::std::option::Option<::std::string::String>,
44}
45impl HumanLoopActivationOutputBuilder {
46 pub fn human_loop_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48 self.human_loop_arn = ::std::option::Option::Some(input.into());
49 self
50 }
51 pub fn set_human_loop_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
53 self.human_loop_arn = input;
54 self
55 }
56 pub fn get_human_loop_arn(&self) -> &::std::option::Option<::std::string::String> {
58 &self.human_loop_arn
59 }
60 pub fn human_loop_activation_reasons(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66 let mut v = self.human_loop_activation_reasons.unwrap_or_default();
67 v.push(input.into());
68 self.human_loop_activation_reasons = ::std::option::Option::Some(v);
69 self
70 }
71 pub fn set_human_loop_activation_reasons(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
73 self.human_loop_activation_reasons = input;
74 self
75 }
76 pub fn get_human_loop_activation_reasons(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
78 &self.human_loop_activation_reasons
79 }
80 pub fn human_loop_activation_conditions_evaluation_results(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82 self.human_loop_activation_conditions_evaluation_results = ::std::option::Option::Some(input.into());
83 self
84 }
85 pub fn set_human_loop_activation_conditions_evaluation_results(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.human_loop_activation_conditions_evaluation_results = input;
88 self
89 }
90 pub fn get_human_loop_activation_conditions_evaluation_results(&self) -> &::std::option::Option<::std::string::String> {
92 &self.human_loop_activation_conditions_evaluation_results
93 }
94 pub fn build(self) -> crate::types::HumanLoopActivationOutput {
96 crate::types::HumanLoopActivationOutput {
97 human_loop_arn: self.human_loop_arn,
98 human_loop_activation_reasons: self.human_loop_activation_reasons,
99 human_loop_activation_conditions_evaluation_results: self.human_loop_activation_conditions_evaluation_results,
100 }
101 }
102}