AWS SDK for C++  0.12.9
AWS SDK for C++
VirtualMFADevice.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
19 #include <aws/core/utils/Array.h>
20 #include <aws/iam/model/User.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace IAM
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  VirtualMFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
54 
58  inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
59 
63  inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
64 
68  inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
69 
73  inline VirtualMFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
74 
78  inline VirtualMFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(value); return *this;}
79 
83  inline VirtualMFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
84 
90  inline const Aws::Utils::ByteBuffer& GetBase32StringSeed() const{ return m_base32StringSeed; }
91 
97  inline void SetBase32StringSeed(const Aws::Utils::ByteBuffer& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = value; }
98 
104  inline void SetBase32StringSeed(Aws::Utils::ByteBuffer&& value) { m_base32StringSeedHasBeenSet = true; m_base32StringSeed = value; }
105 
111  inline VirtualMFADevice& WithBase32StringSeed(const Aws::Utils::ByteBuffer& value) { SetBase32StringSeed(value); return *this;}
112 
118  inline VirtualMFADevice& WithBase32StringSeed(Aws::Utils::ByteBuffer&& value) { SetBase32StringSeed(value); return *this;}
119 
128  inline const Aws::Utils::ByteBuffer& GetQRCodePNG() const{ return m_qRCodePNG; }
129 
138  inline void SetQRCodePNG(const Aws::Utils::ByteBuffer& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = value; }
139 
148  inline void SetQRCodePNG(Aws::Utils::ByteBuffer&& value) { m_qRCodePNGHasBeenSet = true; m_qRCodePNG = value; }
149 
158  inline VirtualMFADevice& WithQRCodePNG(const Aws::Utils::ByteBuffer& value) { SetQRCodePNG(value); return *this;}
159 
168  inline VirtualMFADevice& WithQRCodePNG(Aws::Utils::ByteBuffer&& value) { SetQRCodePNG(value); return *this;}
169 
170 
171  inline const User& GetUser() const{ return m_user; }
172 
173 
174  inline void SetUser(const User& value) { m_userHasBeenSet = true; m_user = value; }
175 
176 
177  inline void SetUser(User&& value) { m_userHasBeenSet = true; m_user = value; }
178 
179 
180  inline VirtualMFADevice& WithUser(const User& value) { SetUser(value); return *this;}
181 
182 
183  inline VirtualMFADevice& WithUser(User&& value) { SetUser(value); return *this;}
184 
188  inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; }
189 
193  inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
194 
198  inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
199 
203  inline VirtualMFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;}
204 
208  inline VirtualMFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(value); return *this;}
209 
210  private:
211  Aws::String m_serialNumber;
212  bool m_serialNumberHasBeenSet;
213  Aws::Utils::ByteBuffer m_base32StringSeed;
214  bool m_base32StringSeedHasBeenSet;
215  Aws::Utils::ByteBuffer m_qRCodePNG;
216  bool m_qRCodePNGHasBeenSet;
217  User m_user;
218  bool m_userHasBeenSet;
219  Aws::Utils::DateTime m_enableDate;
220  bool m_enableDateHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace IAM
225 } // namespace Aws
void SetBase32StringSeed(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetQRCodePNG() const
void SetSerialNumber(Aws::String &&value)
void SetUser(const User &value)
VirtualMFADevice & WithBase32StringSeed(const Aws::Utils::ByteBuffer &value)
VirtualMFADevice & WithQRCodePNG(const Aws::Utils::ByteBuffer &value)
VirtualMFADevice & WithEnableDate(const Aws::Utils::DateTime &value)
VirtualMFADevice & WithBase32StringSeed(Aws::Utils::ByteBuffer &&value)
void SetSerialNumber(const Aws::String &value)
VirtualMFADevice & WithSerialNumber(const Aws::String &value)
VirtualMFADevice & WithEnableDate(Aws::Utils::DateTime &&value)
void SetEnableDate(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetSerialNumber() const
const Aws::Utils::ByteBuffer & GetBase32StringSeed() const
VirtualMFADevice & WithSerialNumber(Aws::String &&value)
VirtualMFADevice & WithUser(User &&value)
VirtualMFADevice & WithSerialNumber(const char *value)
void SetSerialNumber(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetBase32StringSeed(Aws::Utils::ByteBuffer &&value)
void SetQRCodePNG(Aws::Utils::ByteBuffer &&value)
VirtualMFADevice & WithUser(const User &value)
const Aws::Utils::DateTime & GetEnableDate() const
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
VirtualMFADevice & WithQRCodePNG(Aws::Utils::ByteBuffer &&value)
void SetEnableDate(Aws::Utils::DateTime &&value)
void SetQRCodePNG(const Aws::Utils::ByteBuffer &value)
JSON (JavaScript Object Notation).