#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct HumanLoopActivationOutput {
pub human_loop_arn: ::std::option::Option<::std::string::String>,
pub human_loop_activation_reasons: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub human_loop_activation_conditions_evaluation_results: ::std::option::Option<::std::string::String>,
}
impl HumanLoopActivationOutput {
pub fn human_loop_arn(&self) -> ::std::option::Option<&str> {
self.human_loop_arn.as_deref()
}
pub fn human_loop_activation_reasons(&self) -> &[::std::string::String] {
self.human_loop_activation_reasons.as_deref().unwrap_or_default()
}
pub fn human_loop_activation_conditions_evaluation_results(&self) -> ::std::option::Option<&str> {
self.human_loop_activation_conditions_evaluation_results.as_deref()
}
}
impl HumanLoopActivationOutput {
pub fn builder() -> crate::types::builders::HumanLoopActivationOutputBuilder {
crate::types::builders::HumanLoopActivationOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct HumanLoopActivationOutputBuilder {
pub(crate) human_loop_arn: ::std::option::Option<::std::string::String>,
pub(crate) human_loop_activation_reasons: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) human_loop_activation_conditions_evaluation_results: ::std::option::Option<::std::string::String>,
}
impl HumanLoopActivationOutputBuilder {
pub fn human_loop_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.human_loop_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_human_loop_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.human_loop_arn = input;
self
}
pub fn get_human_loop_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.human_loop_arn
}
pub fn human_loop_activation_reasons(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.human_loop_activation_reasons.unwrap_or_default();
v.push(input.into());
self.human_loop_activation_reasons = ::std::option::Option::Some(v);
self
}
pub fn set_human_loop_activation_reasons(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.human_loop_activation_reasons = input;
self
}
pub fn get_human_loop_activation_reasons(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.human_loop_activation_reasons
}
pub fn human_loop_activation_conditions_evaluation_results(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.human_loop_activation_conditions_evaluation_results = ::std::option::Option::Some(input.into());
self
}
pub fn set_human_loop_activation_conditions_evaluation_results(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.human_loop_activation_conditions_evaluation_results = input;
self
}
pub fn get_human_loop_activation_conditions_evaluation_results(&self) -> &::std::option::Option<::std::string::String> {
&self.human_loop_activation_conditions_evaluation_results
}
pub fn build(self) -> crate::types::HumanLoopActivationOutput {
crate::types::HumanLoopActivationOutput {
human_loop_arn: self.human_loop_arn,
human_loop_activation_reasons: self.human_loop_activation_reasons,
human_loop_activation_conditions_evaluation_results: self.human_loop_activation_conditions_evaluation_results,
}
}
}