AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RoleNameT = Aws::String>
55 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
56 template<typename RoleNameT = Aws::String>
57 PolicyRole& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
59
61
67 inline const Aws::String& GetRoleId() const { return m_roleId; }
68 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
69 template<typename RoleIdT = Aws::String>
70 void SetRoleId(RoleIdT&& value) { m_roleIdHasBeenSet = true; m_roleId = std::forward<RoleIdT>(value); }
71 template<typename RoleIdT = Aws::String>
72 PolicyRole& WithRoleId(RoleIdT&& value) { SetRoleId(std::forward<RoleIdT>(value)); return *this;}
74 private:
75
76 Aws::String m_roleName;
77 bool m_roleNameHasBeenSet = false;
78
79 Aws::String m_roleId;
80 bool m_roleIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IAM
85} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API PolicyRole()=default
AWS_IAM_API PolicyRole(const Aws::Utils::Xml::XmlNode &xmlNode)
bool RoleNameHasBeenSet() const
Definition PolicyRole.h:53
const Aws::String & GetRoleName() const
Definition PolicyRole.h:52
void SetRoleName(RoleNameT &&value)
Definition PolicyRole.h:55
AWS_IAM_API PolicyRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRoleId() const
Definition PolicyRole.h:67
void SetRoleId(RoleIdT &&value)
Definition PolicyRole.h:70
PolicyRole & WithRoleName(RoleNameT &&value)
Definition PolicyRole.h:57
bool RoleIdHasBeenSet() const
Definition PolicyRole.h:68
PolicyRole & WithRoleId(RoleIdT &&value)
Definition PolicyRole.h:72
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