Struct aws_sdk_iam::types::builders::PolicyUserBuilder
source · #[non_exhaustive]pub struct PolicyUserBuilder { /* private fields */ }Expand description
A builder for PolicyUser.
Implementations§
source§impl PolicyUserBuilder
impl PolicyUserBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name (friendly name, not ARN) identifying the user.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name (friendly name, not ARN) identifying the user.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name (friendly name, not ARN) identifying the user.
sourcepub fn user_id(self, input: impl Into<String>) -> Self
pub fn user_id(self, input: impl Into<String>) -> Self
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn set_user_id(self, input: Option<String>) -> Self
pub fn set_user_id(self, input: Option<String>) -> Self
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn get_user_id(&self) -> &Option<String>
pub fn get_user_id(&self) -> &Option<String>
The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn build(self) -> PolicyUser
pub fn build(self) -> PolicyUser
Consumes the builder and constructs a PolicyUser.
Trait Implementations§
source§impl Clone for PolicyUserBuilder
impl Clone for PolicyUserBuilder
source§fn clone(&self) -> PolicyUserBuilder
fn clone(&self) -> PolicyUserBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PolicyUserBuilder
impl Debug for PolicyUserBuilder
source§impl Default for PolicyUserBuilder
impl Default for PolicyUserBuilder
source§fn default() -> PolicyUserBuilder
fn default() -> PolicyUserBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PolicyUserBuilder
impl PartialEq for PolicyUserBuilder
source§fn eq(&self, other: &PolicyUserBuilder) -> bool
fn eq(&self, other: &PolicyUserBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PolicyUserBuilder
Auto Trait Implementations§
impl Freeze for PolicyUserBuilder
impl RefUnwindSafe for PolicyUserBuilder
impl Send for PolicyUserBuilder
impl Sync for PolicyUserBuilder
impl Unpin for PolicyUserBuilder
impl UnwindSafe for PolicyUserBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.