Struct aws_sdk_codecatalyst::types::builders::UserIdentityBuilder
source · #[non_exhaustive]pub struct UserIdentityBuilder { /* private fields */ }
Expand description
A builder for UserIdentity
.
Implementations§
source§impl UserIdentityBuilder
impl UserIdentityBuilder
sourcepub fn user_type(self, input: UserType) -> Self
pub fn user_type(self, input: UserType) -> Self
The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
This field is required.sourcepub fn set_user_type(self, input: Option<UserType>) -> Self
pub fn set_user_type(self, input: Option<UserType>) -> Self
The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
sourcepub fn get_user_type(&self) -> &Option<UserType>
pub fn get_user_type(&self) -> &Option<UserType>
The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
sourcepub fn principal_id(self, input: impl Into<String>) -> Self
pub fn principal_id(self, input: impl Into<String>) -> Self
The ID of the Amazon CodeCatalyst service principal.
This field is required.sourcepub fn set_principal_id(self, input: Option<String>) -> Self
pub fn set_principal_id(self, input: Option<String>) -> Self
The ID of the Amazon CodeCatalyst service principal.
sourcepub fn get_principal_id(&self) -> &Option<String>
pub fn get_principal_id(&self) -> &Option<String>
The ID of the Amazon CodeCatalyst service principal.
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The display name of the user in Amazon CodeCatalyst.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The display name of the user in Amazon CodeCatalyst.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The display name of the user in Amazon CodeCatalyst.
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account number of the user in Amazon Web Services, if any.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account number of the user in Amazon Web Services, if any.
sourcepub fn get_aws_account_id(&self) -> &Option<String>
pub fn get_aws_account_id(&self) -> &Option<String>
The Amazon Web Services account number of the user in Amazon Web Services, if any.
sourcepub fn build(self) -> Result<UserIdentity, BuildError>
pub fn build(self) -> Result<UserIdentity, BuildError>
Consumes the builder and constructs a UserIdentity
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UserIdentityBuilder
impl Clone for UserIdentityBuilder
source§fn clone(&self) -> UserIdentityBuilder
fn clone(&self) -> UserIdentityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserIdentityBuilder
impl Debug for UserIdentityBuilder
source§impl Default for UserIdentityBuilder
impl Default for UserIdentityBuilder
source§fn default() -> UserIdentityBuilder
fn default() -> UserIdentityBuilder
source§impl PartialEq for UserIdentityBuilder
impl PartialEq for UserIdentityBuilder
source§fn eq(&self, other: &UserIdentityBuilder) -> bool
fn eq(&self, other: &UserIdentityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.