/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains information about a virtual MFA device.

See Also:

* AWS * API Reference

*/ class AWS_IAM_API VirtualMFADevice { public: VirtualMFADevice(); VirtualMFADevice(const Aws::Utils::Xml::XmlNode& xmlNode); VirtualMFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The serial number associated with VirtualMFADevice.

*/ inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; } /** *

The serial number associated with VirtualMFADevice.

*/ inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; } /** *

The serial number associated with VirtualMFADevice.

*/ inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; } /** *

The serial number associated with VirtualMFADevice.

*/ inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); } /** *

The serial number associated with VirtualMFADevice.

*/ inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); } /** *

The serial number associated with VirtualMFADevice.

*/ inline VirtualMFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;} /** *

The serial number associated with VirtualMFADevice.

*/ inline VirtualMFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;} /** *

The serial number associated with VirtualMFADevice.

*/ inline VirtualMFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;} /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline const Aws::Utils::CryptoBuffer& GetBase32StringSeed() const{ return m_base32StringSeed; } /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline bool Base32StringSeedHasBeenSet() const { return m_base32StringSeedHasBeenSet; } /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline void SetBase32StringSeed(const Aws::Utils::CryptoBuffer& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = value; } /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline void SetBase32StringSeed(Aws::Utils::CryptoBuffer&& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = std::move(value); } /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline VirtualMFADevice& WithBase32StringSeed(const Aws::Utils::CryptoBuffer& value) { SetBase32StringSeed(value); return *this;} /** *

The base32 seed defined as specified in RFC3548. The * Base32StringSeed is base64-encoded.

*/ inline VirtualMFADevice& WithBase32StringSeed(Aws::Utils::CryptoBuffer&& value) { SetBase32StringSeed(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Utils::CryptoBuffer& GetQRCodePNG() const{ return m_qRCodePNG; } /** *

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.

*/ inline bool QRCodePNGHasBeenSet() const { return m_qRCodePNGHasBeenSet; } /** *

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.

*/ inline void SetQRCodePNG(const Aws::Utils::CryptoBuffer& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = value; } /** *

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.

*/ inline void SetQRCodePNG(Aws::Utils::CryptoBuffer&& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = std::move(value); } /** *

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.

*/ inline VirtualMFADevice& WithQRCodePNG(const Aws::Utils::CryptoBuffer& value) { SetQRCodePNG(value); return *this;} /** *

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.

*/ inline VirtualMFADevice& WithQRCodePNG(Aws::Utils::CryptoBuffer&& value) { SetQRCodePNG(std::move(value)); return *this;} /** *

The IAM user associated with this virtual MFA device.

*/ inline const User& GetUser() const{ return m_user; } /** *

The IAM user associated with this virtual MFA device.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

The IAM user associated with this virtual MFA device.

*/ inline void SetUser(const User& value) { m_userHasBeenSet = true; m_user = value; } /** *

The IAM user associated with this virtual MFA device.

*/ inline void SetUser(User&& value) { m_userHasBeenSet = true; m_user = std::move(value); } /** *

The IAM user associated with this virtual MFA device.

*/ inline VirtualMFADevice& WithUser(const User& value) { SetUser(value); return *this;} /** *

The IAM user associated with this virtual MFA device.

*/ inline VirtualMFADevice& WithUser(User&& value) { SetUser(std::move(value)); return *this;} /** *

The date and time on which the virtual MFA device was enabled.

*/ inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; } /** *

The date and time on which the virtual MFA device was enabled.

*/ inline bool EnableDateHasBeenSet() const { return m_enableDateHasBeenSet; } /** *

The date and time on which the virtual MFA device was enabled.

*/ inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; } /** *

The date and time on which the virtual MFA device was enabled.

*/ inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = std::move(value); } /** *

The date and time on which the virtual MFA device was enabled.

*/ inline VirtualMFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;} /** *

The date and time on which the virtual MFA device was enabled.

*/ inline VirtualMFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(std::move(value)); return *this;} private: Aws::String m_serialNumber; bool m_serialNumberHasBeenSet; Aws::Utils::CryptoBuffer m_base32StringSeed; bool m_base32StringSeedHasBeenSet; Aws::Utils::CryptoBuffer m_qRCodePNG; bool m_qRCodePNGHasBeenSet; User m_user; bool m_userHasBeenSet; Aws::Utils::DateTime m_enableDate; bool m_enableDateHasBeenSet; }; } // namespace Model } // namespace IAM } // namespace Aws