#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopHumanLoopOutput {}
pub mod stop_human_loop_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::StopHumanLoopOutput {
crate::output::StopHumanLoopOutput {}
}
}
}
impl StopHumanLoopOutput {
pub fn builder() -> crate::output::stop_human_loop_output::Builder {
crate::output::stop_human_loop_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StartHumanLoopOutput {
#[doc(hidden)]
pub human_loop_arn: std::option::Option<std::string::String>,
}
impl StartHumanLoopOutput {
pub fn human_loop_arn(&self) -> std::option::Option<&str> {
self.human_loop_arn.as_deref()
}
}
pub mod start_human_loop_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) human_loop_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn human_loop_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.human_loop_arn = 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 build(self) -> crate::output::StartHumanLoopOutput {
crate::output::StartHumanLoopOutput {
human_loop_arn: self.human_loop_arn,
}
}
}
}
impl StartHumanLoopOutput {
pub fn builder() -> crate::output::start_human_loop_output::Builder {
crate::output::start_human_loop_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListHumanLoopsOutput {
#[doc(hidden)]
pub human_loop_summaries: std::option::Option<std::vec::Vec<crate::model::HumanLoopSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListHumanLoopsOutput {
pub fn human_loop_summaries(&self) -> std::option::Option<&[crate::model::HumanLoopSummary]> {
self.human_loop_summaries.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
pub mod list_human_loops_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) human_loop_summaries:
std::option::Option<std::vec::Vec<crate::model::HumanLoopSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn human_loop_summaries(mut self, input: crate::model::HumanLoopSummary) -> Self {
let mut v = self.human_loop_summaries.unwrap_or_default();
v.push(input);
self.human_loop_summaries = Some(v);
self
}
pub fn set_human_loop_summaries(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HumanLoopSummary>>,
) -> Self {
self.human_loop_summaries = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListHumanLoopsOutput {
crate::output::ListHumanLoopsOutput {
human_loop_summaries: self.human_loop_summaries,
next_token: self.next_token,
}
}
}
}
impl ListHumanLoopsOutput {
pub fn builder() -> crate::output::list_human_loops_output::Builder {
crate::output::list_human_loops_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeHumanLoopOutput {
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub failure_reason: std::option::Option<std::string::String>,
#[doc(hidden)]
pub failure_code: std::option::Option<std::string::String>,
#[doc(hidden)]
pub human_loop_status: std::option::Option<crate::model::HumanLoopStatus>,
#[doc(hidden)]
pub human_loop_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub human_loop_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub flow_definition_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub human_loop_output: std::option::Option<crate::model::HumanLoopOutput>,
}
impl DescribeHumanLoopOutput {
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn failure_reason(&self) -> std::option::Option<&str> {
self.failure_reason.as_deref()
}
pub fn failure_code(&self) -> std::option::Option<&str> {
self.failure_code.as_deref()
}
pub fn human_loop_status(&self) -> std::option::Option<&crate::model::HumanLoopStatus> {
self.human_loop_status.as_ref()
}
pub fn human_loop_name(&self) -> std::option::Option<&str> {
self.human_loop_name.as_deref()
}
pub fn human_loop_arn(&self) -> std::option::Option<&str> {
self.human_loop_arn.as_deref()
}
pub fn flow_definition_arn(&self) -> std::option::Option<&str> {
self.flow_definition_arn.as_deref()
}
pub fn human_loop_output(&self) -> std::option::Option<&crate::model::HumanLoopOutput> {
self.human_loop_output.as_ref()
}
}
pub mod describe_human_loop_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) failure_reason: std::option::Option<std::string::String>,
pub(crate) failure_code: std::option::Option<std::string::String>,
pub(crate) human_loop_status: std::option::Option<crate::model::HumanLoopStatus>,
pub(crate) human_loop_name: std::option::Option<std::string::String>,
pub(crate) human_loop_arn: std::option::Option<std::string::String>,
pub(crate) flow_definition_arn: std::option::Option<std::string::String>,
pub(crate) human_loop_output: std::option::Option<crate::model::HumanLoopOutput>,
}
impl Builder {
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn failure_reason(mut self, input: impl Into<std::string::String>) -> Self {
self.failure_reason = Some(input.into());
self
}
pub fn set_failure_reason(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.failure_reason = input;
self
}
pub fn failure_code(mut self, input: impl Into<std::string::String>) -> Self {
self.failure_code = Some(input.into());
self
}
pub fn set_failure_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.failure_code = input;
self
}
pub fn human_loop_status(mut self, input: crate::model::HumanLoopStatus) -> Self {
self.human_loop_status = Some(input);
self
}
pub fn set_human_loop_status(
mut self,
input: std::option::Option<crate::model::HumanLoopStatus>,
) -> Self {
self.human_loop_status = input;
self
}
pub fn human_loop_name(mut self, input: impl Into<std::string::String>) -> Self {
self.human_loop_name = Some(input.into());
self
}
pub fn set_human_loop_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.human_loop_name = input;
self
}
pub fn human_loop_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.human_loop_arn = 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 flow_definition_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_definition_arn = Some(input.into());
self
}
pub fn set_flow_definition_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.flow_definition_arn = input;
self
}
pub fn human_loop_output(mut self, input: crate::model::HumanLoopOutput) -> Self {
self.human_loop_output = Some(input);
self
}
pub fn set_human_loop_output(
mut self,
input: std::option::Option<crate::model::HumanLoopOutput>,
) -> Self {
self.human_loop_output = input;
self
}
pub fn build(self) -> crate::output::DescribeHumanLoopOutput {
crate::output::DescribeHumanLoopOutput {
creation_time: self.creation_time,
failure_reason: self.failure_reason,
failure_code: self.failure_code,
human_loop_status: self.human_loop_status,
human_loop_name: self.human_loop_name,
human_loop_arn: self.human_loop_arn,
flow_definition_arn: self.flow_definition_arn,
human_loop_output: self.human_loop_output,
}
}
}
}
impl DescribeHumanLoopOutput {
pub fn builder() -> crate::output::describe_human_loop_output::Builder {
crate::output::describe_human_loop_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteHumanLoopOutput {}
pub mod delete_human_loop_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteHumanLoopOutput {
crate::output::DeleteHumanLoopOutput {}
}
}
}
impl DeleteHumanLoopOutput {
pub fn builder() -> crate::output::delete_human_loop_output::Builder {
crate::output::delete_human_loop_output::Builder::default()
}
}