#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteFlowInput {
pub flow_name: ::std::option::Option<::std::string::String>,
pub force_delete: ::std::option::Option<bool>,
}
impl DeleteFlowInput {
pub fn flow_name(&self) -> ::std::option::Option<&str> {
self.flow_name.as_deref()
}
pub fn force_delete(&self) -> ::std::option::Option<bool> {
self.force_delete
}
}
impl DeleteFlowInput {
pub fn builder() -> crate::operation::delete_flow::builders::DeleteFlowInputBuilder {
crate::operation::delete_flow::builders::DeleteFlowInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteFlowInputBuilder {
pub(crate) flow_name: ::std::option::Option<::std::string::String>,
pub(crate) force_delete: ::std::option::Option<bool>,
}
impl DeleteFlowInputBuilder {
pub fn flow_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.flow_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_flow_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.flow_name = input;
self
}
pub fn get_flow_name(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_name
}
pub fn force_delete(mut self, input: bool) -> Self {
self.force_delete = ::std::option::Option::Some(input);
self
}
pub fn set_force_delete(mut self, input: ::std::option::Option<bool>) -> Self {
self.force_delete = input;
self
}
pub fn get_force_delete(&self) -> &::std::option::Option<bool> {
&self.force_delete
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_flow::DeleteFlowInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_flow::DeleteFlowInput {
flow_name: self.flow_name,
force_delete: self.force_delete,
})
}
}