aws_sdk_workmail/operation/update_user/
builders.rspub use crate::operation::update_user::_update_user_output::UpdateUserOutputBuilder;
pub use crate::operation::update_user::_update_user_input::UpdateUserInputBuilder;
impl crate::operation::update_user::builders::UpdateUserInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_user::UpdateUserOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_user::UpdateUserError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_user();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateUserFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_user::builders::UpdateUserInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_user::UpdateUserOutput,
crate::operation::update_user::UpdateUserError,
> for UpdateUserFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_user::UpdateUserOutput,
crate::operation::update_user::UpdateUserError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateUserFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::update_user::builders::UpdateUserInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_user::UpdateUserOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_user::UpdateUserError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::update_user::UpdateUser::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_user::UpdateUser::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_user::UpdateUserOutput,
crate::operation::update_user::UpdateUserError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_organization_id()
}
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_user_id()
}
pub fn role(mut self, input: crate::types::UserRole) -> Self {
self.inner = self.inner.role(input);
self
}
pub fn set_role(mut self, input: ::std::option::Option<crate::types::UserRole>) -> Self {
self.inner = self.inner.set_role(input);
self
}
pub fn get_role(&self) -> &::std::option::Option<crate::types::UserRole> {
self.inner.get_role()
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_display_name()
}
pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.first_name(input.into());
self
}
pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_first_name(input);
self
}
pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_first_name()
}
pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.last_name(input.into());
self
}
pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_last_name(input);
self
}
pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_last_name()
}
pub fn hidden_from_global_address_list(mut self, input: bool) -> Self {
self.inner = self.inner.hidden_from_global_address_list(input);
self
}
pub fn set_hidden_from_global_address_list(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_hidden_from_global_address_list(input);
self
}
pub fn get_hidden_from_global_address_list(&self) -> &::std::option::Option<bool> {
self.inner.get_hidden_from_global_address_list()
}
pub fn initials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.initials(input.into());
self
}
pub fn set_initials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_initials(input);
self
}
pub fn get_initials(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_initials()
}
pub fn telephone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.telephone(input.into());
self
}
pub fn set_telephone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_telephone(input);
self
}
pub fn get_telephone(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_telephone()
}
pub fn street(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.street(input.into());
self
}
pub fn set_street(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_street(input);
self
}
pub fn get_street(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_street()
}
pub fn job_title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.job_title(input.into());
self
}
pub fn set_job_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_job_title(input);
self
}
pub fn get_job_title(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_job_title()
}
pub fn city(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.city(input.into());
self
}
pub fn set_city(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_city(input);
self
}
pub fn get_city(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_city()
}
pub fn company(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.company(input.into());
self
}
pub fn set_company(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_company(input);
self
}
pub fn get_company(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_company()
}
pub fn zip_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.zip_code(input.into());
self
}
pub fn set_zip_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_zip_code(input);
self
}
pub fn get_zip_code(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_zip_code()
}
pub fn department(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.department(input.into());
self
}
pub fn set_department(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_department(input);
self
}
pub fn get_department(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_department()
}
pub fn country(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.country(input.into());
self
}
pub fn set_country(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_country(input);
self
}
pub fn get_country(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_country()
}
pub fn office(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.office(input.into());
self
}
pub fn set_office(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_office(input);
self
}
pub fn get_office(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_office()
}
pub fn identity_provider_user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.identity_provider_user_id(input.into());
self
}
pub fn set_identity_provider_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_identity_provider_user_id(input);
self
}
pub fn get_identity_provider_user_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_identity_provider_user_id()
}
}