AWS SDK for C++  0.12.9
AWS SDK for C++
MFADevice.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace IAM
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  MFADevice();
43  MFADevice(const Aws::Utils::Xml::XmlNode& xmlNode);
44  MFADevice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetUserName() const{ return m_userName; }
53 
57  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
58 
62  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
63 
67  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
68 
72  inline MFADevice& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
73 
77  inline MFADevice& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
78 
82  inline MFADevice& WithUserName(const char* value) { SetUserName(value); return *this;}
83 
88  inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
89 
94  inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
95 
100  inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
101 
106  inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
107 
112  inline MFADevice& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
113 
118  inline MFADevice& WithSerialNumber(Aws::String&& value) { SetSerialNumber(value); return *this;}
119 
124  inline MFADevice& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
125 
129  inline const Aws::Utils::DateTime& GetEnableDate() const{ return m_enableDate; }
130 
134  inline void SetEnableDate(const Aws::Utils::DateTime& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
135 
139  inline void SetEnableDate(Aws::Utils::DateTime&& value) { m_enableDateHasBeenSet = true; m_enableDate = value; }
140 
144  inline MFADevice& WithEnableDate(const Aws::Utils::DateTime& value) { SetEnableDate(value); return *this;}
145 
149  inline MFADevice& WithEnableDate(Aws::Utils::DateTime&& value) { SetEnableDate(value); return *this;}
150 
151  private:
152  Aws::String m_userName;
153  bool m_userNameHasBeenSet;
154  Aws::String m_serialNumber;
155  bool m_serialNumberHasBeenSet;
156  Aws::Utils::DateTime m_enableDate;
157  bool m_enableDateHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace IAM
162 } // namespace Aws
MFADevice & WithSerialNumber(const Aws::String &value)
Definition: MFADevice.h:112
void SetSerialNumber(Aws::String &&value)
Definition: MFADevice.h:100
void SetUserName(const Aws::String &value)
Definition: MFADevice.h:57
void SetEnableDate(const Aws::Utils::DateTime &value)
Definition: MFADevice.h:134
void SetEnableDate(Aws::Utils::DateTime &&value)
Definition: MFADevice.h:139
MFADevice & WithSerialNumber(Aws::String &&value)
Definition: MFADevice.h:118
const Aws::String & GetUserName() const
Definition: MFADevice.h:52
MFADevice & WithSerialNumber(const char *value)
Definition: MFADevice.h:124
MFADevice & WithEnableDate(const Aws::Utils::DateTime &value)
Definition: MFADevice.h:144
MFADevice & WithUserName(Aws::String &&value)
Definition: MFADevice.h:77
void SetUserName(Aws::String &&value)
Definition: MFADevice.h:62
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetSerialNumber(const char *value)
Definition: MFADevice.h:106
MFADevice & WithUserName(const char *value)
Definition: MFADevice.h:82
MFADevice & WithEnableDate(Aws::Utils::DateTime &&value)
Definition: MFADevice.h:149
MFADevice & WithUserName(const Aws::String &value)
Definition: MFADevice.h:72
const Aws::Utils::DateTime & GetEnableDate() const
Definition: MFADevice.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUserName(const char *value)
Definition: MFADevice.h:67
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
const Aws::String & GetSerialNumber() const
Definition: MFADevice.h:88
void SetSerialNumber(const Aws::String &value)
Definition: MFADevice.h:94
JSON (JavaScript Object Notation).