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