AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UserNameT = Aws::String>
55 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
56 template<typename UserNameT = Aws::String>
57 PolicyUser& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
59
61
67 inline const Aws::String& GetUserId() const { return m_userId; }
68 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
69 template<typename UserIdT = Aws::String>
70 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
71 template<typename UserIdT = Aws::String>
72 PolicyUser& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
74 private:
75
76 Aws::String m_userName;
77 bool m_userNameHasBeenSet = false;
78
79 Aws::String m_userId;
80 bool m_userIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IAM
85} // namespace Aws
bool UserIdHasBeenSet() const
Definition PolicyUser.h:68
AWS_IAM_API PolicyUser(const Aws::Utils::Xml::XmlNode &xmlNode)
bool UserNameHasBeenSet() const
Definition PolicyUser.h:53
AWS_IAM_API PolicyUser()=default
void SetUserId(UserIdT &&value)
Definition PolicyUser.h:70
AWS_IAM_API PolicyUser & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetUserName() const
Definition PolicyUser.h:52
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyUser & WithUserId(UserIdT &&value)
Definition PolicyUser.h:72
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserName(UserNameT &&value)
Definition PolicyUser.h:55
PolicyUser & WithUserName(UserNameT &&value)
Definition PolicyUser.h:57
const Aws::String & GetUserId() const
Definition PolicyUser.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream