AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyRole.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 PolicyRole();
41 AWS_IAM_API PolicyRole(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_IAM_API PolicyRole& 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& GetRoleName() const{ return m_roleName; }
53 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
54 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
55 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
56 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
57 inline PolicyRole& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
58 inline PolicyRole& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
59 inline PolicyRole& WithRoleName(const char* value) { SetRoleName(value); return *this;}
61
63
69 inline const Aws::String& GetRoleId() const{ return m_roleId; }
70 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
71 inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; }
72 inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); }
73 inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); }
74 inline PolicyRole& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;}
75 inline PolicyRole& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;}
76 inline PolicyRole& WithRoleId(const char* value) { SetRoleId(value); return *this;}
78 private:
79
80 Aws::String m_roleName;
81 bool m_roleNameHasBeenSet = false;
82
83 Aws::String m_roleId;
84 bool m_roleIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IAM
89} // namespace Aws
PolicyRole & WithRoleId(const char *value)
Definition PolicyRole.h:76
PolicyRole & WithRoleId(Aws::String &&value)
Definition PolicyRole.h:75
void SetRoleId(const Aws::String &value)
Definition PolicyRole.h:71
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API PolicyRole(const Aws::Utils::Xml::XmlNode &xmlNode)
bool RoleNameHasBeenSet() const
Definition PolicyRole.h:53
void SetRoleId(const char *value)
Definition PolicyRole.h:73
void SetRoleName(const Aws::String &value)
Definition PolicyRole.h:54
const Aws::String & GetRoleName() const
Definition PolicyRole.h:52
PolicyRole & WithRoleName(const char *value)
Definition PolicyRole.h:59
AWS_IAM_API PolicyRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRoleId() const
Definition PolicyRole.h:69
PolicyRole & WithRoleName(Aws::String &&value)
Definition PolicyRole.h:58
void SetRoleId(Aws::String &&value)
Definition PolicyRole.h:72
void SetRoleName(const char *value)
Definition PolicyRole.h:56
bool RoleIdHasBeenSet() const
Definition PolicyRole.h:70
PolicyRole & WithRoleId(const Aws::String &value)
Definition PolicyRole.h:74
PolicyRole & WithRoleName(const Aws::String &value)
Definition PolicyRole.h:57
void SetRoleName(Aws::String &&value)
Definition PolicyRole.h:55
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream