Struct aws_sdk_iam::types::builders::MfaDeviceBuilder
source · #[non_exhaustive]pub struct MfaDeviceBuilder { /* private fields */ }
Expand description
A builder for MfaDevice
.
Implementations§
source§impl MfaDeviceBuilder
impl MfaDeviceBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The user with whom the MFA device is associated.
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The user with whom the MFA device is associated.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The user with whom the MFA device is associated.
sourcepub fn serial_number(self, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This field is required.sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
sourcepub fn get_serial_number(&self) -> &Option<String>
pub fn get_serial_number(&self) -> &Option<String>
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
sourcepub fn enable_date(self, input: DateTime) -> Self
pub fn enable_date(self, input: DateTime) -> Self
The date when the MFA device was enabled for the user.
This field is required.sourcepub fn set_enable_date(self, input: Option<DateTime>) -> Self
pub fn set_enable_date(self, input: Option<DateTime>) -> Self
The date when the MFA device was enabled for the user.
sourcepub fn get_enable_date(&self) -> &Option<DateTime>
pub fn get_enable_date(&self) -> &Option<DateTime>
The date when the MFA device was enabled for the user.
Trait Implementations§
source§impl Clone for MfaDeviceBuilder
impl Clone for MfaDeviceBuilder
source§fn clone(&self) -> MfaDeviceBuilder
fn clone(&self) -> MfaDeviceBuilder
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 MfaDeviceBuilder
impl Debug for MfaDeviceBuilder
source§impl Default for MfaDeviceBuilder
impl Default for MfaDeviceBuilder
source§fn default() -> MfaDeviceBuilder
fn default() -> MfaDeviceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MfaDeviceBuilder
impl PartialEq for MfaDeviceBuilder
source§fn eq(&self, other: &MfaDeviceBuilder) -> bool
fn eq(&self, other: &MfaDeviceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MfaDeviceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MfaDeviceBuilder
impl Send for MfaDeviceBuilder
impl Sync for MfaDeviceBuilder
impl Unpin for MfaDeviceBuilder
impl UnwindSafe for MfaDeviceBuilder
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>
Creates a shared type from an unshared type.