AWS SDK for C++  1.8.100
AWS SDK for C++
MFADevice.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace IAM
23 {
24 namespace Model
25 {
26 
35  {
36  public:
37  MFADevice();
38  MFADevice(const Aws::Utils::Xml::XmlNode& xmlNode);
39  MFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetUserName() const{ return m_userName; }
49 
53  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
54 
58  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
59 
63  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
64 
68  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
69 
73  inline MFADevice& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
74 
78  inline MFADevice& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
79 
83  inline MFADevice& WithUserName(const char* value) { SetUserName(value); return *this;}
84 
85 
90  inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
91 
96  inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
97 
102  inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
103 
108  inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
109 
114  inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
115 
120  inline MFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
121 
126  inline MFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
127 
132  inline MFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
133 
134 
138  inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; }
139 
143  inline bool EnableDateHasBeenSet() const { return m_enableDateHasBeenSet; }
144 
148  inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
149 
153  inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = std::move(value); }
154 
158  inline MFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;}
159 
163  inline MFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(std::move(value)); return *this;}
164 
165  private:
166 
167  Aws::String m_userName;
168  bool m_userNameHasBeenSet;
169 
170  Aws::String m_serialNumber;
171  bool m_serialNumberHasBeenSet;
172 
173  Aws::Utils::DateTime m_enableDate;
174  bool m_enableDateHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace IAM
179 } // namespace Aws
MFADevice & WithSerialNumber(const Aws::String &value)
Definition: MFADevice.h:120
void SetSerialNumber(Aws::String &&value)
Definition: MFADevice.h:108
bool UserNameHasBeenSet() const
Definition: MFADevice.h:53
void SetUserName(const Aws::String &value)
Definition: MFADevice.h:58
void SetEnableDate(const Aws::Utils::DateTime &value)
Definition: MFADevice.h:148
void SetEnableDate(Aws::Utils::DateTime &&value)
Definition: MFADevice.h:153
const Aws::String & GetUserName() const
Definition: MFADevice.h:48
MFADevice & WithSerialNumber(Aws::String &&value)
Definition: MFADevice.h:126
bool EnableDateHasBeenSet() const
Definition: MFADevice.h:143
int index
Definition: cJSON.h:171
MFADevice & WithSerialNumber(const char *value)
Definition: MFADevice.h:132
MFADevice & WithEnableDate(const Aws::Utils::DateTime &value)
Definition: MFADevice.h:158
MFADevice & WithUserName(Aws::String &&value)
Definition: MFADevice.h:78
void SetUserName(Aws::String &&value)
Definition: MFADevice.h:63
const Aws::Utils::DateTime & GetEnableDate() const
Definition: MFADevice.h:138
bool SerialNumberHasBeenSet() const
Definition: MFADevice.h:96
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
void SetSerialNumber(const char *value)
Definition: MFADevice.h:114
MFADevice & WithUserName(const char *value)
Definition: MFADevice.h:83
MFADevice & WithEnableDate(Aws::Utils::DateTime &&value)
Definition: MFADevice.h:163
MFADevice & WithUserName(const Aws::String &value)
Definition: MFADevice.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetSerialNumber() const
Definition: MFADevice.h:90
void SetUserName(const char *value)
Definition: MFADevice.h:68
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
void SetSerialNumber(const Aws::String &value)
Definition: MFADevice.h:102