#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateSourceViewsInput {
pub arn: ::std::option::Option<::std::string::String>,
pub source_views: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DisassociateSourceViewsInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn source_views(&self) -> &[::std::string::String] {
self.source_views.as_deref().unwrap_or_default()
}
}
impl DisassociateSourceViewsInput {
pub fn builder() -> crate::operation::disassociate_source_views::builders::DisassociateSourceViewsInputBuilder {
crate::operation::disassociate_source_views::builders::DisassociateSourceViewsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateSourceViewsInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) source_views: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DisassociateSourceViewsInputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn source_views(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.source_views.unwrap_or_default();
v.push(input.into());
self.source_views = ::std::option::Option::Some(v);
self
}
pub fn set_source_views(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.source_views = input;
self
}
pub fn get_source_views(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.source_views
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::disassociate_source_views::DisassociateSourceViewsInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::disassociate_source_views::DisassociateSourceViewsInput {
arn: self.arn,
source_views: self.source_views,
})
}
}