AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualMFADevice.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/Array.h>
11#include <aws/iam/model/User.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/iam/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace IAM
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_IAM_API VirtualMFADevice();
41 AWS_IAM_API VirtualMFADevice(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
53 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
54 inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
55 inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
56 inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
57 inline VirtualMFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
58 inline VirtualMFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
59 inline VirtualMFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
61
63
68 inline const Aws::Utils::CryptoBuffer& GetBase32StringSeed() const{ return m_base32StringSeed; }
69 inline bool Base32StringSeedHasBeenSet() const { return m_base32StringSeedHasBeenSet; }
70 inline void SetBase32StringSeed(const Aws::Utils::CryptoBuffer& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = value; }
71 inline void SetBase32StringSeed(Aws::Utils::CryptoBuffer&& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = std::move(value); }
73 inline VirtualMFADevice& WithBase32StringSeed(Aws::Utils::CryptoBuffer&& value) { SetBase32StringSeed(std::move(value)); return *this;}
75
77
85 inline const Aws::Utils::CryptoBuffer& GetQRCodePNG() const{ return m_qRCodePNG; }
86 inline bool QRCodePNGHasBeenSet() const { return m_qRCodePNGHasBeenSet; }
87 inline void SetQRCodePNG(const Aws::Utils::CryptoBuffer& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = value; }
88 inline void SetQRCodePNG(Aws::Utils::CryptoBuffer&& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = std::move(value); }
89 inline VirtualMFADevice& WithQRCodePNG(const Aws::Utils::CryptoBuffer& value) { SetQRCodePNG(value); return *this;}
90 inline VirtualMFADevice& WithQRCodePNG(Aws::Utils::CryptoBuffer&& value) { SetQRCodePNG(std::move(value)); return *this;}
92
94
97 inline const User& GetUser() const{ return m_user; }
98 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
99 inline void SetUser(const User& value) { m_userHasBeenSet = true; m_user = value; }
100 inline void SetUser(User&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
101 inline VirtualMFADevice& WithUser(const User& value) { SetUser(value); return *this;}
102 inline VirtualMFADevice& WithUser(User&& value) { SetUser(std::move(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; }
110 inline bool EnableDateHasBeenSet() const { return m_enableDateHasBeenSet; }
111 inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
112 inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = std::move(value); }
113 inline VirtualMFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;}
114 inline VirtualMFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(std::move(value)); return *this;}
116
118
124 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline VirtualMFADevice& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
129 inline VirtualMFADevice& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
130 inline VirtualMFADevice& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
131 inline VirtualMFADevice& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_serialNumber;
136 bool m_serialNumberHasBeenSet = false;
137
138 Aws::Utils::CryptoBuffer m_base32StringSeed;
139 bool m_base32StringSeedHasBeenSet = false;
140
141 Aws::Utils::CryptoBuffer m_qRCodePNG;
142 bool m_qRCodePNGHasBeenSet = false;
143
144 User m_user;
145 bool m_userHasBeenSet = false;
146
147 Aws::Utils::DateTime m_enableDate;
148 bool m_enableDateHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace IAM
156} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
VirtualMFADevice & AddTags(Tag &&value)
void SetQRCodePNG(Aws::Utils::CryptoBuffer &&value)
const Aws::String & GetSerialNumber() const
void SetSerialNumber(Aws::String &&value)
VirtualMFADevice & WithUser(User &&value)
VirtualMFADevice & WithBase32StringSeed(Aws::Utils::CryptoBuffer &&value)
void SetEnableDate(Aws::Utils::DateTime &&value)
VirtualMFADevice & WithQRCodePNG(Aws::Utils::CryptoBuffer &&value)
AWS_IAM_API VirtualMFADevice(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEnableDate(const Aws::Utils::DateTime &value)
void SetBase32StringSeed(Aws::Utils::CryptoBuffer &&value)
VirtualMFADevice & WithTags(const Aws::Vector< Tag > &value)
const Aws::Utils::CryptoBuffer & GetQRCodePNG() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSerialNumber(const Aws::String &value)
void SetQRCodePNG(const Aws::Utils::CryptoBuffer &value)
void SetUser(const User &value)
void SetBase32StringSeed(const Aws::Utils::CryptoBuffer &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetSerialNumber(const char *value)
VirtualMFADevice & WithEnableDate(Aws::Utils::DateTime &&value)
VirtualMFADevice & WithQRCodePNG(const Aws::Utils::CryptoBuffer &value)
AWS_IAM_API VirtualMFADevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VirtualMFADevice & WithTags(Aws::Vector< Tag > &&value)
VirtualMFADevice & WithSerialNumber(Aws::String &&value)
const Aws::Utils::CryptoBuffer & GetBase32StringSeed() const
VirtualMFADevice & AddTags(const Tag &value)
VirtualMFADevice & WithSerialNumber(const Aws::String &value)
const Aws::Utils::DateTime & GetEnableDate() const
VirtualMFADevice & WithBase32StringSeed(const Aws::Utils::CryptoBuffer &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VirtualMFADevice & WithEnableDate(const Aws::Utils::DateTime &value)
VirtualMFADevice & WithUser(const User &value)
VirtualMFADevice & WithSerialNumber(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream