#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveRegionsFromReplicationInput {
pub secret_id: ::std::option::Option<::std::string::String>,
pub remove_replica_regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl RemoveRegionsFromReplicationInput {
pub fn secret_id(&self) -> ::std::option::Option<&str> {
self.secret_id.as_deref()
}
pub fn remove_replica_regions(&self) -> &[::std::string::String] {
self.remove_replica_regions.as_deref().unwrap_or_default()
}
}
impl RemoveRegionsFromReplicationInput {
pub fn builder() -> crate::operation::remove_regions_from_replication::builders::RemoveRegionsFromReplicationInputBuilder {
crate::operation::remove_regions_from_replication::builders::RemoveRegionsFromReplicationInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RemoveRegionsFromReplicationInputBuilder {
pub(crate) secret_id: ::std::option::Option<::std::string::String>,
pub(crate) remove_replica_regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl RemoveRegionsFromReplicationInputBuilder {
pub fn secret_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.secret_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_secret_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.secret_id = input;
self
}
pub fn get_secret_id(&self) -> &::std::option::Option<::std::string::String> {
&self.secret_id
}
pub fn remove_replica_regions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.remove_replica_regions.unwrap_or_default();
v.push(input.into());
self.remove_replica_regions = ::std::option::Option::Some(v);
self
}
pub fn set_remove_replica_regions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.remove_replica_regions = input;
self
}
pub fn get_remove_replica_regions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.remove_replica_regions
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::remove_regions_from_replication::RemoveRegionsFromReplicationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::remove_regions_from_replication::RemoveRegionsFromReplicationInput {
secret_id: self.secret_id,
remove_replica_regions: self.remove_replica_regions,
})
}
}