Struct aws_sdk_iam::types::builders::VirtualMfaDeviceBuilder
source · #[non_exhaustive]pub struct VirtualMfaDeviceBuilder { /* private fields */ }
Expand description
A builder for VirtualMfaDevice
.
Implementations§
source§impl VirtualMfaDeviceBuilder
impl VirtualMfaDeviceBuilder
sourcepub fn serial_number(self, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
The serial number associated with VirtualMFADevice
.
sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
The serial number associated with VirtualMFADevice
.
sourcepub fn base32_string_seed(self, input: Blob) -> Self
pub fn base32_string_seed(self, input: Blob) -> Self
The base32 seed defined as specified in RFC3548. The Base32StringSeed
is base64-encoded.
sourcepub fn set_base32_string_seed(self, input: Option<Blob>) -> Self
pub fn set_base32_string_seed(self, input: Option<Blob>) -> Self
The base32 seed defined as specified in RFC3548. The Base32StringSeed
is base64-encoded.
sourcepub fn qr_code_png(self, input: Blob) -> Self
pub fn qr_code_png(self, input: Blob) -> Self
A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call arguments. AccountName
is the user name if set (otherwise, the account ID otherwise), and Base32String
is the seed in base32 format. The Base32String
value is base64-encoded.
sourcepub fn set_qr_code_png(self, input: Option<Blob>) -> Self
pub fn set_qr_code_png(self, input: Option<Blob>) -> Self
A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call arguments. AccountName
is the user name if set (otherwise, the account ID otherwise), and Base32String
is the seed in base32 format. The Base32String
value is base64-encoded.
sourcepub fn set_user(self, input: Option<User>) -> Self
pub fn set_user(self, input: Option<User>) -> Self
The IAM user associated with this virtual MFA device.
sourcepub fn enable_date(self, input: DateTime) -> Self
pub fn enable_date(self, input: DateTime) -> Self
The date and time on which the virtual MFA device was enabled.
sourcepub fn set_enable_date(self, input: Option<DateTime>) -> Self
pub fn set_enable_date(self, input: Option<DateTime>) -> Self
The date and time on which the virtual MFA device was enabled.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
sourcepub fn build(self) -> VirtualMfaDevice
pub fn build(self) -> VirtualMfaDevice
Consumes the builder and constructs a VirtualMfaDevice
.
Trait Implementations§
source§impl Clone for VirtualMfaDeviceBuilder
impl Clone for VirtualMfaDeviceBuilder
source§fn clone(&self) -> VirtualMfaDeviceBuilder
fn clone(&self) -> VirtualMfaDeviceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualMfaDeviceBuilder
impl Debug for VirtualMfaDeviceBuilder
source§impl Default for VirtualMfaDeviceBuilder
impl Default for VirtualMfaDeviceBuilder
source§fn default() -> VirtualMfaDeviceBuilder
fn default() -> VirtualMfaDeviceBuilder
source§impl PartialEq<VirtualMfaDeviceBuilder> for VirtualMfaDeviceBuilder
impl PartialEq<VirtualMfaDeviceBuilder> for VirtualMfaDeviceBuilder
source§fn eq(&self, other: &VirtualMfaDeviceBuilder) -> bool
fn eq(&self, other: &VirtualMfaDeviceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.