AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyUser.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_IAM_API PolicyUser();
41 AWS_IAM_API PolicyUser(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_IAM_API PolicyUser& operator=(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& GetUserName() const{ return m_userName; }
53 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
54 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
55 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
56 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
57 inline PolicyUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
58 inline PolicyUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
59 inline PolicyUser& WithUserName(const char* value) { SetUserName(value); return *this;}
61
63
69 inline const Aws::String& GetUserId() const{ return m_userId; }
70 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
71 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
72 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
73 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
74 inline PolicyUser& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
75 inline PolicyUser& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
76 inline PolicyUser& WithUserId(const char* value) { SetUserId(value); return *this;}
78 private:
79
80 Aws::String m_userName;
81 bool m_userNameHasBeenSet = false;
82
83 Aws::String m_userId;
84 bool m_userIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IAM
89} // namespace Aws
bool UserIdHasBeenSet() const
Definition PolicyUser.h:70
AWS_IAM_API PolicyUser(const Aws::Utils::Xml::XmlNode &xmlNode)
bool UserNameHasBeenSet() const
Definition PolicyUser.h:53
void SetUserId(const Aws::String &value)
Definition PolicyUser.h:71
PolicyUser & WithUserId(const Aws::String &value)
Definition PolicyUser.h:74
PolicyUser & WithUserName(const char *value)
Definition PolicyUser.h:59
PolicyUser & WithUserId(const char *value)
Definition PolicyUser.h:76
PolicyUser & WithUserId(Aws::String &&value)
Definition PolicyUser.h:75
PolicyUser & WithUserName(Aws::String &&value)
Definition PolicyUser.h:58
AWS_IAM_API PolicyUser & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserId(const char *value)
Definition PolicyUser.h:73
const Aws::String & GetUserName() const
Definition PolicyUser.h:52
void SetUserName(const Aws::String &value)
Definition PolicyUser.h:54
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyUser & WithUserName(const Aws::String &value)
Definition PolicyUser.h:57
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserName(const char *value)
Definition PolicyUser.h:56
void SetUserName(Aws::String &&value)
Definition PolicyUser.h:55
const Aws::String & GetUserId() const
Definition PolicyUser.h:69
void SetUserId(Aws::String &&value)
Definition PolicyUser.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream