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 ==
.impl StructuralPartialEq for UserIdentityBuilder
Auto Trait Implementations§
impl Freeze for UserIdentityBuilder
impl RefUnwindSafe for UserIdentityBuilder
impl Send for UserIdentityBuilder
impl Sync for UserIdentityBuilder
impl Unpin for UserIdentityBuilder
impl UnwindSafe for UserIdentityBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more