aws-sdk-wickr 1.12.0

AWS SDK for AWS Wickr Admin API
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateUserInput {
    /// <p>The ID of the Wickr network containing the user to update.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the user to update.</p>
    pub user_id: ::std::option::Option<::std::string::String>,
    /// <p>An object containing the user details to be updated, such as name, password, security groups, and invite code settings.</p>
    pub user_details: ::std::option::Option<crate::types::UpdateUserDetails>,
}
impl UpdateUserInput {
    /// <p>The ID of the Wickr network containing the user to update.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The unique identifier of the user to update.</p>
    pub fn user_id(&self) -> ::std::option::Option<&str> {
        self.user_id.as_deref()
    }
    /// <p>An object containing the user details to be updated, such as name, password, security groups, and invite code settings.</p>
    pub fn user_details(&self) -> ::std::option::Option<&crate::types::UpdateUserDetails> {
        self.user_details.as_ref()
    }
}
impl UpdateUserInput {
    /// Creates a new builder-style object to manufacture [`UpdateUserInput`](crate::operation::update_user::UpdateUserInput).
    pub fn builder() -> crate::operation::update_user::builders::UpdateUserInputBuilder {
        crate::operation::update_user::builders::UpdateUserInputBuilder::default()
    }
}

/// A builder for [`UpdateUserInput`](crate::operation::update_user::UpdateUserInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateUserInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) user_id: ::std::option::Option<::std::string::String>,
    pub(crate) user_details: ::std::option::Option<crate::types::UpdateUserDetails>,
}
impl UpdateUserInputBuilder {
    /// <p>The ID of the Wickr network containing the user to update.</p>
    /// This field is required.
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Wickr network containing the user to update.</p>
    pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_id = input;
        self
    }
    /// <p>The ID of the Wickr network containing the user to update.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The unique identifier of the user to update.</p>
    /// This field is required.
    pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.user_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the user to update.</p>
    pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.user_id = input;
        self
    }
    /// <p>The unique identifier of the user to update.</p>
    pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.user_id
    }
    /// <p>An object containing the user details to be updated, such as name, password, security groups, and invite code settings.</p>
    pub fn user_details(mut self, input: crate::types::UpdateUserDetails) -> Self {
        self.user_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object containing the user details to be updated, such as name, password, security groups, and invite code settings.</p>
    pub fn set_user_details(mut self, input: ::std::option::Option<crate::types::UpdateUserDetails>) -> Self {
        self.user_details = input;
        self
    }
    /// <p>An object containing the user details to be updated, such as name, password, security groups, and invite code settings.</p>
    pub fn get_user_details(&self) -> &::std::option::Option<crate::types::UpdateUserDetails> {
        &self.user_details
    }
    /// Consumes the builder and constructs a [`UpdateUserInput`](crate::operation::update_user::UpdateUserInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::update_user::UpdateUserInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_user::UpdateUserInput {
            network_id: self.network_id,
            user_id: self.user_id,
            user_details: self.user_details,
        })
    }
}