AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PolicyUser.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace IAM {
20namespace Model {
21
34 public:
35 AWS_IAM_API PolicyUser() = default;
36 AWS_IAM_API PolicyUser(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_IAM_API PolicyUser& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetUserName() const { return m_userName; }
47 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
48 template <typename UserNameT = Aws::String>
49 void SetUserName(UserNameT&& value) {
50 m_userNameHasBeenSet = true;
51 m_userName = std::forward<UserNameT>(value);
52 }
53 template <typename UserNameT = Aws::String>
54 PolicyUser& WithUserName(UserNameT&& value) {
55 SetUserName(std::forward<UserNameT>(value));
56 return *this;
57 }
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) {
71 m_userIdHasBeenSet = true;
72 m_userId = std::forward<UserIdT>(value);
73 }
74 template <typename UserIdT = Aws::String>
75 PolicyUser& WithUserId(UserIdT&& value) {
76 SetUserId(std::forward<UserIdT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_userName;
82
83 Aws::String m_userId;
84 bool m_userNameHasBeenSet = false;
85 bool m_userIdHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace IAM
90} // 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:47
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:46
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyUser & WithUserId(UserIdT &&value)
Definition PolicyUser.h:75
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserName(UserNameT &&value)
Definition PolicyUser.h:49
PolicyUser & WithUserName(UserNameT &&value)
Definition PolicyUser.h:54
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