#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteFlowInput {
#[doc(hidden)]
pub flow_arn: std::option::Option<std::string::String>,
}
impl DeleteFlowInput {
pub fn flow_arn(&self) -> std::option::Option<&str> {
self.flow_arn.as_deref()
}
}
impl DeleteFlowInput {
pub fn builder() -> crate::operation::delete_flow::builders::DeleteFlowInputBuilder {
crate::operation::delete_flow::builders::DeleteFlowInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteFlowInputBuilder {
pub(crate) flow_arn: std::option::Option<std::string::String>,
}
impl DeleteFlowInputBuilder {
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_arn = Some(input.into());
self
}
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_flow::DeleteFlowInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_flow::DeleteFlowInput {
flow_arn: self.flow_arn,
})
}
}