Struct aws_sdk_appstream::types::builders::UserBuilder
source · #[non_exhaustive]pub struct UserBuilder { /* private fields */ }
Expand description
A builder for User
.
Implementations§
source§impl UserBuilder
impl UserBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The email address of the user.
Users' email addresses are case-sensitive.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The email address of the user.
Users' email addresses are case-sensitive.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The email address of the user.
Users' email addresses are case-sensitive.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Specifies whether the user in the user pool is enabled.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether the user in the user pool is enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether the user in the user pool is enabled.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the user in the user pool. The status can be one of the following:
-
UNCONFIRMED – The user is created but not confirmed.
-
CONFIRMED – The user is confirmed.
-
ARCHIVED – The user is no longer active.
-
COMPROMISED – The user is disabled because of a potential security threat.
-
UNKNOWN – The user status is not known.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the user in the user pool. The status can be one of the following:
-
UNCONFIRMED – The user is created but not confirmed.
-
CONFIRMED – The user is confirmed.
-
ARCHIVED – The user is no longer active.
-
COMPROMISED – The user is disabled because of a potential security threat.
-
UNKNOWN – The user status is not known.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the user in the user pool. The status can be one of the following:
-
UNCONFIRMED – The user is created but not confirmed.
-
CONFIRMED – The user is confirmed.
-
ARCHIVED – The user is no longer active.
-
COMPROMISED – The user is disabled because of a potential security threat.
-
UNKNOWN – The user status is not known.
sourcepub fn first_name(self, input: impl Into<String>) -> Self
pub fn first_name(self, input: impl Into<String>) -> Self
The first name, or given name, of the user.
sourcepub fn set_first_name(self, input: Option<String>) -> Self
pub fn set_first_name(self, input: Option<String>) -> Self
The first name, or given name, of the user.
sourcepub fn get_first_name(&self) -> &Option<String>
pub fn get_first_name(&self) -> &Option<String>
The first name, or given name, of the user.
sourcepub fn last_name(self, input: impl Into<String>) -> Self
pub fn last_name(self, input: impl Into<String>) -> Self
The last name, or surname, of the user.
sourcepub fn set_last_name(self, input: Option<String>) -> Self
pub fn set_last_name(self, input: Option<String>) -> Self
The last name, or surname, of the user.
sourcepub fn get_last_name(&self) -> &Option<String>
pub fn get_last_name(&self) -> &Option<String>
The last name, or surname, of the user.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time the user was created in the user pool.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time the user was created in the user pool.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The date and time the user was created in the user pool.
sourcepub fn authentication_type(self, input: AuthenticationType) -> Self
pub fn authentication_type(self, input: AuthenticationType) -> Self
The authentication type for the user.
This field is required.sourcepub fn set_authentication_type(self, input: Option<AuthenticationType>) -> Self
pub fn set_authentication_type(self, input: Option<AuthenticationType>) -> Self
The authentication type for the user.
sourcepub fn get_authentication_type(&self) -> &Option<AuthenticationType>
pub fn get_authentication_type(&self) -> &Option<AuthenticationType>
The authentication type for the user.
Trait Implementations§
source§impl Clone for UserBuilder
impl Clone for UserBuilder
source§fn clone(&self) -> UserBuilder
fn clone(&self) -> UserBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserBuilder
impl Debug for UserBuilder
source§impl Default for UserBuilder
impl Default for UserBuilder
source§fn default() -> UserBuilder
fn default() -> UserBuilder
source§impl PartialEq for UserBuilder
impl PartialEq for UserBuilder
source§fn eq(&self, other: &UserBuilder) -> bool
fn eq(&self, other: &UserBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.