#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchUnsuspendUserInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub user_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchUnsuspendUserInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn user_id_list(&self) -> &[::std::string::String] {
self.user_id_list.as_deref().unwrap_or_default()
}
}
impl BatchUnsuspendUserInput {
pub fn builder() -> crate::operation::batch_unsuspend_user::builders::BatchUnsuspendUserInputBuilder {
crate::operation::batch_unsuspend_user::builders::BatchUnsuspendUserInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchUnsuspendUserInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) user_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchUnsuspendUserInputBuilder {
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn user_id_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.user_id_list.unwrap_or_default();
v.push(input.into());
self.user_id_list = ::std::option::Option::Some(v);
self
}
pub fn set_user_id_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.user_id_list = input;
self
}
pub fn get_user_id_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.user_id_list
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::batch_unsuspend_user::BatchUnsuspendUserInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::batch_unsuspend_user::BatchUnsuspendUserInput {
account_id: self.account_id,
user_id_list: self.user_id_list,
})
}
}