AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PolicyRole.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 PolicyRole() = default;
36 AWS_IAM_API PolicyRole(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_IAM_API PolicyRole& 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& GetRoleName() const { return m_roleName; }
47 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
48 template <typename RoleNameT = Aws::String>
49 void SetRoleName(RoleNameT&& value) {
50 m_roleNameHasBeenSet = true;
51 m_roleName = std::forward<RoleNameT>(value);
52 }
53 template <typename RoleNameT = Aws::String>
54 PolicyRole& WithRoleName(RoleNameT&& value) {
55 SetRoleName(std::forward<RoleNameT>(value));
56 return *this;
57 }
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) {
71 m_roleIdHasBeenSet = true;
72 m_roleId = std::forward<RoleIdT>(value);
73 }
74 template <typename RoleIdT = Aws::String>
75 PolicyRole& WithRoleId(RoleIdT&& value) {
76 SetRoleId(std::forward<RoleIdT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_roleName;
82
83 Aws::String m_roleId;
84 bool m_roleNameHasBeenSet = false;
85 bool m_roleIdHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace IAM
90} // 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:47
const Aws::String & GetRoleName() const
Definition PolicyRole.h:46
void SetRoleName(RoleNameT &&value)
Definition PolicyRole.h:49
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:54
bool RoleIdHasBeenSet() const
Definition PolicyRole.h:68
PolicyRole & WithRoleId(RoleIdT &&value)
Definition PolicyRole.h:75
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