#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopFlowExecutionInput {
pub flow_identifier: ::std::option::Option<::std::string::String>,
pub flow_alias_identifier: ::std::option::Option<::std::string::String>,
pub execution_identifier: ::std::option::Option<::std::string::String>,
}
impl StopFlowExecutionInput {
pub fn flow_identifier(&self) -> ::std::option::Option<&str> {
self.flow_identifier.as_deref()
}
pub fn flow_alias_identifier(&self) -> ::std::option::Option<&str> {
self.flow_alias_identifier.as_deref()
}
pub fn execution_identifier(&self) -> ::std::option::Option<&str> {
self.execution_identifier.as_deref()
}
}
impl StopFlowExecutionInput {
pub fn builder() -> crate::operation::stop_flow_execution::builders::StopFlowExecutionInputBuilder {
crate::operation::stop_flow_execution::builders::StopFlowExecutionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopFlowExecutionInputBuilder {
pub(crate) flow_identifier: ::std::option::Option<::std::string::String>,
pub(crate) flow_alias_identifier: ::std::option::Option<::std::string::String>,
pub(crate) execution_identifier: ::std::option::Option<::std::string::String>,
}
impl StopFlowExecutionInputBuilder {
pub fn flow_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.flow_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_flow_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.flow_identifier = input;
self
}
pub fn get_flow_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_identifier
}
pub fn flow_alias_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.flow_alias_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_flow_alias_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.flow_alias_identifier = input;
self
}
pub fn get_flow_alias_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_alias_identifier
}
pub fn execution_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_identifier = input;
self
}
pub fn get_execution_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_identifier
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::stop_flow_execution::StopFlowExecutionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::stop_flow_execution::StopFlowExecutionInput {
flow_identifier: self.flow_identifier,
flow_alias_identifier: self.flow_alias_identifier,
execution_identifier: self.execution_identifier,
})
}
}