#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchUpdateUserInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub update_user_request_items: ::std::option::Option<::std::vec::Vec<crate::types::UpdateUserRequestItem>>,
}
impl BatchUpdateUserInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn update_user_request_items(&self) -> &[crate::types::UpdateUserRequestItem] {
self.update_user_request_items.as_deref().unwrap_or_default()
}
}
impl BatchUpdateUserInput {
pub fn builder() -> crate::operation::batch_update_user::builders::BatchUpdateUserInputBuilder {
crate::operation::batch_update_user::builders::BatchUpdateUserInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchUpdateUserInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) update_user_request_items: ::std::option::Option<::std::vec::Vec<crate::types::UpdateUserRequestItem>>,
}
impl BatchUpdateUserInputBuilder {
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 update_user_request_items(mut self, input: crate::types::UpdateUserRequestItem) -> Self {
let mut v = self.update_user_request_items.unwrap_or_default();
v.push(input);
self.update_user_request_items = ::std::option::Option::Some(v);
self
}
pub fn set_update_user_request_items(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UpdateUserRequestItem>>) -> Self {
self.update_user_request_items = input;
self
}
pub fn get_update_user_request_items(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UpdateUserRequestItem>> {
&self.update_user_request_items
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::batch_update_user::BatchUpdateUserInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::batch_update_user::BatchUpdateUserInput {
account_id: self.account_id,
update_user_request_items: self.update_user_request_items,
})
}
}