AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MFADevice.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_IAM_API MFADevice() = default;
39 AWS_IAM_API MFADevice(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_IAM_API MFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetUserName() const { return m_userName; }
51 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
52 template<typename UserNameT = Aws::String>
53 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
54 template<typename UserNameT = Aws::String>
55 MFADevice& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
57
59
63 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
64 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
65 template<typename SerialNumberT = Aws::String>
66 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
67 template<typename SerialNumberT = Aws::String>
68 MFADevice& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetEnableDate() const { return m_enableDate; }
76 inline bool EnableDateHasBeenSet() const { return m_enableDateHasBeenSet; }
77 template<typename EnableDateT = Aws::Utils::DateTime>
78 void SetEnableDate(EnableDateT&& value) { m_enableDateHasBeenSet = true; m_enableDate = std::forward<EnableDateT>(value); }
79 template<typename EnableDateT = Aws::Utils::DateTime>
80 MFADevice& WithEnableDate(EnableDateT&& value) { SetEnableDate(std::forward<EnableDateT>(value)); return *this;}
82 private:
83
84 Aws::String m_userName;
85 bool m_userNameHasBeenSet = false;
86
87 Aws::String m_serialNumber;
88 bool m_serialNumberHasBeenSet = false;
89
90 Aws::Utils::DateTime m_enableDate{};
91 bool m_enableDateHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IAM
96} // namespace Aws
const Aws::Utils::DateTime & GetEnableDate() const
Definition MFADevice.h:75
AWS_IAM_API MFADevice(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSerialNumber() const
Definition MFADevice.h:63
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MFADevice & WithSerialNumber(SerialNumberT &&value)
Definition MFADevice.h:68
void SetUserName(UserNameT &&value)
Definition MFADevice.h:53
MFADevice & WithEnableDate(EnableDateT &&value)
Definition MFADevice.h:80
bool EnableDateHasBeenSet() const
Definition MFADevice.h:76
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSerialNumber(SerialNumberT &&value)
Definition MFADevice.h:66
void SetEnableDate(EnableDateT &&value)
Definition MFADevice.h:78
bool UserNameHasBeenSet() const
Definition MFADevice.h:51
AWS_IAM_API MFADevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API MFADevice()=default
bool SerialNumberHasBeenSet() const
Definition MFADevice.h:64
const Aws::String & GetUserName() const
Definition MFADevice.h:50
MFADevice & WithUserName(UserNameT &&value)
Definition MFADevice.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream