Struct aws_sdk_iam::types::builders::AccessKeyMetadataBuilder
source · #[non_exhaustive]pub struct AccessKeyMetadataBuilder { /* private fields */ }Expand description
A builder for AccessKeyMetadata.
Implementations§
source§impl AccessKeyMetadataBuilder
impl AccessKeyMetadataBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the IAM user that the key is associated with.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the IAM user that the key is associated with.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name of the IAM user that the key is associated with.
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The ID for this access key.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The ID for this access key.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The ID for this access key.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status of the access key. Active means that the key is valid for API calls; Inactive means it is not.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status of the access key. Active means that the key is valid for API calls; Inactive means it is not.
sourcepub fn get_status(&self) -> &Option<StatusType>
pub fn get_status(&self) -> &Option<StatusType>
The status of the access key. Active means that the key is valid for API calls; Inactive means it is not.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date when the access key was created.
sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date when the access key was created.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date when the access key was created.
sourcepub fn build(self) -> AccessKeyMetadata
pub fn build(self) -> AccessKeyMetadata
Consumes the builder and constructs a AccessKeyMetadata.
Trait Implementations§
source§impl Clone for AccessKeyMetadataBuilder
impl Clone for AccessKeyMetadataBuilder
source§fn clone(&self) -> AccessKeyMetadataBuilder
fn clone(&self) -> AccessKeyMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AccessKeyMetadataBuilder
impl Debug for AccessKeyMetadataBuilder
source§impl Default for AccessKeyMetadataBuilder
impl Default for AccessKeyMetadataBuilder
source§fn default() -> AccessKeyMetadataBuilder
fn default() -> AccessKeyMetadataBuilder
source§impl PartialEq for AccessKeyMetadataBuilder
impl PartialEq for AccessKeyMetadataBuilder
source§fn eq(&self, other: &AccessKeyMetadataBuilder) -> bool
fn eq(&self, other: &AccessKeyMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AccessKeyMetadataBuilder
Auto Trait Implementations§
impl Freeze for AccessKeyMetadataBuilder
impl RefUnwindSafe for AccessKeyMetadataBuilder
impl Send for AccessKeyMetadataBuilder
impl Sync for AccessKeyMetadataBuilder
impl Unpin for AccessKeyMetadataBuilder
impl UnwindSafe for AccessKeyMetadataBuilder
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> 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