AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_IAM_API MFADevice();
38 AWS_IAM_API MFADevice(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_IAM_API MFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetUserName() const{ return m_userName; }
50 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
51 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
52 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
53 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
54 inline MFADevice& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
55 inline MFADevice& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
56 inline MFADevice& WithUserName(const char* value) { SetUserName(value); return *this;}
58
60
64 inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
65 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
66 inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
67 inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
68 inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
69 inline MFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
70 inline MFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
71 inline MFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; }
79 inline bool EnableDateHasBeenSet() const { return m_enableDateHasBeenSet; }
80 inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
81 inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = std::move(value); }
82 inline MFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;}
83 inline MFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(std::move(value)); return *this;}
85 private:
86
87 Aws::String m_userName;
88 bool m_userNameHasBeenSet = false;
89
90 Aws::String m_serialNumber;
91 bool m_serialNumberHasBeenSet = false;
92
93 Aws::Utils::DateTime m_enableDate;
94 bool m_enableDateHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace IAM
99} // namespace Aws
MFADevice & WithEnableDate(Aws::Utils::DateTime &&value)
Definition MFADevice.h:83
const Aws::Utils::DateTime & GetEnableDate() const
Definition MFADevice.h:78
MFADevice & WithUserName(const char *value)
Definition MFADevice.h:56
AWS_IAM_API MFADevice(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserName(Aws::String &&value)
Definition MFADevice.h:52
const Aws::String & GetSerialNumber() const
Definition MFADevice.h:64
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEnableDate(Aws::Utils::DateTime &&value)
Definition MFADevice.h:81
void SetUserName(const char *value)
Definition MFADevice.h:53
bool EnableDateHasBeenSet() const
Definition MFADevice.h:79
void SetSerialNumber(Aws::String &&value)
Definition MFADevice.h:67
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MFADevice & WithSerialNumber(const Aws::String &value)
Definition MFADevice.h:69
void SetSerialNumber(const Aws::String &value)
Definition MFADevice.h:66
MFADevice & WithEnableDate(const Aws::Utils::DateTime &value)
Definition MFADevice.h:82
MFADevice & WithSerialNumber(Aws::String &&value)
Definition MFADevice.h:70
void SetEnableDate(const Aws::Utils::DateTime &value)
Definition MFADevice.h:80
bool UserNameHasBeenSet() const
Definition MFADevice.h:50
MFADevice & WithUserName(Aws::String &&value)
Definition MFADevice.h:55
void SetUserName(const Aws::String &value)
Definition MFADevice.h:51
void SetSerialNumber(const char *value)
Definition MFADevice.h:68
AWS_IAM_API MFADevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MFADevice & WithUserName(const Aws::String &value)
Definition MFADevice.h:54
bool SerialNumberHasBeenSet() const
Definition MFADevice.h:65
MFADevice & WithSerialNumber(const char *value)
Definition MFADevice.h:71
const Aws::String & GetUserName() const
Definition MFADevice.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream