#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveFlowSourceInput {
pub flow_arn: ::std::option::Option<::std::string::String>,
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
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 ::std::convert::Into<::std::string::String>) -> Self {
self.flow_arn = ::std::option::Option::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 get_flow_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_arn
}
pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_arn = ::std::option::Option::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 get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.source_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::remove_flow_source::RemoveFlowSourceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::remove_flow_source::RemoveFlowSourceInput {
flow_arn: self.flow_arn,
source_arn: self.source_arn,
})
}
}