AWS SDK for C++  0.14.3
AWS SDK for C++
User.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 
42  {
43  public:
44  User();
45  User(const Aws::Utils::Xml::XmlNode& xmlNode);
46  User& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
56  inline const Aws::String& GetPath() const{ return m_path; }
57 
63  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
64 
70  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = value; }
71 
77  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
78 
84  inline User& WithPath(const Aws::String& value) { SetPath(value); return *this;}
85 
91  inline User& WithPath(Aws::String&& value) { SetPath(value); return *this;}
92 
98  inline User& WithPath(const char* value) { SetPath(value); return *this;}
99 
103  inline const Aws::String& GetUserName() const{ return m_userName; }
104 
108  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
109 
113  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
114 
118  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
119 
123  inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
124 
128  inline User& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
129 
133  inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
134 
141  inline const Aws::String& GetUserId() const{ return m_userId; }
142 
149  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
150 
157  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = value; }
158 
165  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
166 
173  inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
174 
181  inline User& WithUserId(Aws::String&& value) { SetUserId(value); return *this;}
182 
189  inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
190 
197  inline const Aws::String& GetArn() const{ return m_arn; }
198 
205  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
206 
213  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
214 
221  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
222 
229  inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
230 
237  inline User& WithArn(Aws::String&& value) { SetArn(value); return *this;}
238 
245  inline User& WithArn(const char* value) { SetArn(value); return *this;}
246 
251  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
252 
257  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
258 
263  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
264 
269  inline User& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
270 
275  inline User& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
276 
292  inline const Aws::Utils::DateTime& GetPasswordLastUsed() const{ return m_passwordLastUsed; }
293 
309  inline void SetPasswordLastUsed(const Aws::Utils::DateTime& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; }
310 
326  inline void SetPasswordLastUsed(Aws::Utils::DateTime&& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; }
327 
343  inline User& WithPasswordLastUsed(const Aws::Utils::DateTime& value) { SetPasswordLastUsed(value); return *this;}
344 
360  inline User& WithPasswordLastUsed(Aws::Utils::DateTime&& value) { SetPasswordLastUsed(value); return *this;}
361 
362  private:
363  Aws::String m_path;
364  bool m_pathHasBeenSet;
365  Aws::String m_userName;
366  bool m_userNameHasBeenSet;
367  Aws::String m_userId;
368  bool m_userIdHasBeenSet;
369  Aws::String m_arn;
370  bool m_arnHasBeenSet;
371  Aws::Utils::DateTime m_createDate;
372  bool m_createDateHasBeenSet;
373  Aws::Utils::DateTime m_passwordLastUsed;
374  bool m_passwordLastUsedHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace IAM
379 } // namespace Aws
void SetUserId(const Aws::String &value)
Definition: User.h:149
void SetPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:326
void SetPath(const Aws::String &value)
Definition: User.h:63
void SetUserName(const char *value)
Definition: User.h:118
void SetArn(const Aws::String &value)
Definition: User.h:205
void SetUserId(Aws::String &&value)
Definition: User.h:157
User & WithUserName(Aws::String &&value)
Definition: User.h:128
User & WithUserId(const char *value)
Definition: User.h:189
User & WithArn(const Aws::String &value)
Definition: User.h:229
User & WithPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:343
void SetUserName(const Aws::String &value)
Definition: User.h:108
void SetArn(Aws::String &&value)
Definition: User.h:213
const Aws::Utils::DateTime & GetPasswordLastUsed() const
Definition: User.h:292
User & WithUserId(const Aws::String &value)
Definition: User.h:173
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetUserName(Aws::String &&value)
Definition: User.h:113
User & WithUserId(Aws::String &&value)
Definition: User.h:181
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:263
User & WithUserName(const char *value)
Definition: User.h:133
User & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: User.h:275
User & WithArn(Aws::String &&value)
Definition: User.h:237
User & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:269
User & WithPath(Aws::String &&value)
Definition: User.h:91
const Aws::String & GetPath() const
Definition: User.h:56
void SetPath(const char *value)
Definition: User.h:77
User & WithPath(const char *value)
Definition: User.h:98
const Aws::String & GetUserName() const
Definition: User.h:103
void SetPath(Aws::String &&value)
Definition: User.h:70
void SetUserId(const char *value)
Definition: User.h:165
User & WithUserName(const Aws::String &value)
Definition: User.h:123
const Aws::Utils::DateTime & GetCreateDate() const
Definition: User.h:251
void SetPasswordLastUsed(const Aws::Utils::DateTime &value)
Definition: User.h:309
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetUserId() const
Definition: User.h:141
User & WithPath(const Aws::String &value)
Definition: User.h:84
User & WithPasswordLastUsed(Aws::Utils::DateTime &&value)
Definition: User.h:360
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
const Aws::String & GetArn() const
Definition: User.h:197
void SetArn(const char *value)
Definition: User.h:221
User & WithArn(const char *value)
Definition: User.h:245
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: User.h:257
JSON (JavaScript Object Notation).