/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { class GetMFADeviceResult { public: AWS_IAM_API GetMFADeviceResult(); AWS_IAM_API GetMFADeviceResult(const Aws::AmazonWebServiceResult& result); AWS_IAM_API GetMFADeviceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The friendly name identifying the user.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The friendly name identifying the user.

*/ inline void SetUserName(const Aws::String& value) { m_userName = value; } /** *

The friendly name identifying the user.

*/ inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); } /** *

The friendly name identifying the user.

*/ inline void SetUserName(const char* value) { m_userName.assign(value); } /** *

The friendly name identifying the user.

*/ inline GetMFADeviceResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The friendly name identifying the user.

*/ inline GetMFADeviceResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The friendly name identifying the user.

*/ inline GetMFADeviceResult& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

Serial number that uniquely identifies the MFA device. For this API, we only * accept FIDO security key ARNs.

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

The date that a specified user's MFA device was first enabled.

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

The date that a specified user's MFA device was first enabled.

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

The date that a specified user's MFA device was first enabled.

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

The date that a specified user's MFA device was first enabled.

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

The date that a specified user's MFA device was first enabled.

*/ inline GetMFADeviceResult& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(std::move(value)); return *this;} /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline const Aws::Map& GetCertifications() const{ return m_certifications; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline void SetCertifications(const Aws::Map& value) { m_certifications = value; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline void SetCertifications(Aws::Map&& value) { m_certifications = std::move(value); } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& WithCertifications(const Aws::Map& value) { SetCertifications(value); return *this;} /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& WithCertifications(Aws::Map&& value) { SetCertifications(std::move(value)); return *this;} /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(const Aws::String& key, const Aws::String& value) { m_certifications.emplace(key, value); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(Aws::String&& key, const Aws::String& value) { m_certifications.emplace(std::move(key), value); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(const Aws::String& key, Aws::String&& value) { m_certifications.emplace(key, std::move(value)); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(Aws::String&& key, Aws::String&& value) { m_certifications.emplace(std::move(key), std::move(value)); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(const char* key, Aws::String&& value) { m_certifications.emplace(key, std::move(value)); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(Aws::String&& key, const char* value) { m_certifications.emplace(std::move(key), value); return *this; } /** *

The certifications of a specified user's MFA device. We currently provide * FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service * (MDS).

*/ inline GetMFADeviceResult& AddCertifications(const char* key, const char* value) { m_certifications.emplace(key, value); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetMFADeviceResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetMFADeviceResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_userName; Aws::String m_serialNumber; Aws::Utils::DateTime m_enableDate; Aws::Map m_certifications; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace IAM } // namespace Aws