#[non_exhaustive]pub struct GetUserOutputBuilder { /* private fields */ }Expand description
A builder for GetUserOutput.
Implementations§
source§impl GetUserOutputBuilder
impl GetUserOutputBuilder
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The username of the user that you requested.
This field is required.sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The username of the user that you requested.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
The username of the user that you requested.
sourcepub fn user_attributes(self, input: AttributeType) -> Self
pub fn user_attributes(self, input: AttributeType) -> Self
Appends an item to user_attributes.
To override the contents of this collection use set_user_attributes.
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix to the attribute name.
sourcepub fn set_user_attributes(self, input: Option<Vec<AttributeType>>) -> Self
pub fn set_user_attributes(self, input: Option<Vec<AttributeType>>) -> Self
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix to the attribute name.
sourcepub fn get_user_attributes(&self) -> &Option<Vec<AttributeType>>
pub fn get_user_attributes(&self) -> &Option<Vec<AttributeType>>
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix to the attribute name.
sourcepub fn mfa_options(self, input: MfaOptionType) -> Self
pub fn mfa_options(self, input: MfaOptionType) -> Self
Appends an item to mfa_options.
To override the contents of this collection use set_mfa_options.
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
sourcepub fn set_mfa_options(self, input: Option<Vec<MfaOptionType>>) -> Self
pub fn set_mfa_options(self, input: Option<Vec<MfaOptionType>>) -> Self
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
sourcepub fn get_mfa_options(&self) -> &Option<Vec<MfaOptionType>>
pub fn get_mfa_options(&self) -> &Option<Vec<MfaOptionType>>
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
sourcepub fn preferred_mfa_setting(self, input: impl Into<String>) -> Self
pub fn preferred_mfa_setting(self, input: impl Into<String>) -> Self
The user's preferred MFA setting.
sourcepub fn set_preferred_mfa_setting(self, input: Option<String>) -> Self
pub fn set_preferred_mfa_setting(self, input: Option<String>) -> Self
The user's preferred MFA setting.
sourcepub fn get_preferred_mfa_setting(&self) -> &Option<String>
pub fn get_preferred_mfa_setting(&self) -> &Option<String>
The user's preferred MFA setting.
sourcepub fn user_mfa_setting_list(self, input: impl Into<String>) -> Self
pub fn user_mfa_setting_list(self, input: impl Into<String>) -> Self
Appends an item to user_mfa_setting_list.
To override the contents of this collection use set_user_mfa_setting_list.
The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
sourcepub fn set_user_mfa_setting_list(self, input: Option<Vec<String>>) -> Self
pub fn set_user_mfa_setting_list(self, input: Option<Vec<String>>) -> Self
The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
sourcepub fn get_user_mfa_setting_list(&self) -> &Option<Vec<String>>
pub fn get_user_mfa_setting_list(&self) -> &Option<Vec<String>>
The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
sourcepub fn build(self) -> Result<GetUserOutput, BuildError>
pub fn build(self) -> Result<GetUserOutput, BuildError>
Consumes the builder and constructs a GetUserOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetUserOutputBuilder
impl Clone for GetUserOutputBuilder
source§fn clone(&self) -> GetUserOutputBuilder
fn clone(&self) -> GetUserOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUserOutputBuilder
impl Debug for GetUserOutputBuilder
source§impl Default for GetUserOutputBuilder
impl Default for GetUserOutputBuilder
source§fn default() -> GetUserOutputBuilder
fn default() -> GetUserOutputBuilder
source§impl PartialEq for GetUserOutputBuilder
impl PartialEq for GetUserOutputBuilder
source§fn eq(&self, other: &GetUserOutputBuilder) -> bool
fn eq(&self, other: &GetUserOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.