AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupDetail.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 <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/PolicyDetail.h>
13#include <aws/iam/model/AttachedPolicy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace IAM
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_IAM_API GroupDetail();
41 AWS_IAM_API GroupDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_IAM_API GroupDetail& 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
54 inline const Aws::String& GetPath() const{ return m_path; }
55 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
56 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
57 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
58 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
59 inline GroupDetail& WithPath(const Aws::String& value) { SetPath(value); return *this;}
60 inline GroupDetail& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
61 inline GroupDetail& WithPath(const char* value) { SetPath(value); return *this;}
63
65
68 inline const Aws::String& GetGroupName() const{ return m_groupName; }
69 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
70 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
71 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
72 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
73 inline GroupDetail& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
74 inline GroupDetail& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
75 inline GroupDetail& WithGroupName(const char* value) { SetGroupName(value); return *this;}
77
79
85 inline const Aws::String& GetGroupId() const{ return m_groupId; }
86 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
87 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
88 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
89 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
90 inline GroupDetail& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
91 inline GroupDetail& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
92 inline GroupDetail& WithGroupId(const char* value) { SetGroupId(value); return *this;}
94
96
97 inline const Aws::String& GetArn() const{ return m_arn; }
98 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
99 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
100 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
101 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
102 inline GroupDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
103 inline GroupDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
104 inline GroupDetail& WithArn(const char* value) { SetArn(value); return *this;}
106
108
112 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
113 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
114 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
115 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
116 inline GroupDetail& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
117 inline GroupDetail& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
119
121
124 inline const Aws::Vector<PolicyDetail>& GetGroupPolicyList() const{ return m_groupPolicyList; }
125 inline bool GroupPolicyListHasBeenSet() const { return m_groupPolicyListHasBeenSet; }
126 inline void SetGroupPolicyList(const Aws::Vector<PolicyDetail>& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList = value; }
127 inline void SetGroupPolicyList(Aws::Vector<PolicyDetail>&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList = std::move(value); }
129 inline GroupDetail& WithGroupPolicyList(Aws::Vector<PolicyDetail>&& value) { SetGroupPolicyList(std::move(value)); return *this;}
130 inline GroupDetail& AddGroupPolicyList(const PolicyDetail& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList.push_back(value); return *this; }
131 inline GroupDetail& AddGroupPolicyList(PolicyDetail&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList.push_back(std::move(value)); return *this; }
133
135
138 inline const Aws::Vector<AttachedPolicy>& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; }
139 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
140 inline void SetAttachedManagedPolicies(const Aws::Vector<AttachedPolicy>& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; }
141 inline void SetAttachedManagedPolicies(Aws::Vector<AttachedPolicy>&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); }
144 inline GroupDetail& AddAttachedManagedPolicies(const AttachedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; }
145 inline GroupDetail& AddAttachedManagedPolicies(AttachedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_path;
150 bool m_pathHasBeenSet = false;
151
152 Aws::String m_groupName;
153 bool m_groupNameHasBeenSet = false;
154
155 Aws::String m_groupId;
156 bool m_groupIdHasBeenSet = false;
157
158 Aws::String m_arn;
159 bool m_arnHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createDate;
162 bool m_createDateHasBeenSet = false;
163
164 Aws::Vector<PolicyDetail> m_groupPolicyList;
165 bool m_groupPolicyListHasBeenSet = false;
166
167 Aws::Vector<AttachedPolicy> m_attachedManagedPolicies;
168 bool m_attachedManagedPoliciesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace IAM
173} // namespace Aws
const Aws::String & GetGroupName() const
Definition GroupDetail.h:68
const Aws::String & GetGroupId() const
Definition GroupDetail.h:85
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GroupDetail & AddGroupPolicyList(PolicyDetail &&value)
GroupDetail & WithGroupPolicyList(Aws::Vector< PolicyDetail > &&value)
bool AttachedManagedPoliciesHasBeenSet() const
GroupDetail & WithGroupName(const char *value)
Definition GroupDetail.h:75
GroupDetail & WithGroupId(Aws::String &&value)
Definition GroupDetail.h:91
void SetGroupId(Aws::String &&value)
Definition GroupDetail.h:88
GroupDetail & WithArn(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
GroupDetail & WithPath(Aws::String &&value)
Definition GroupDetail.h:60
const Aws::String & GetArn() const
Definition GroupDetail.h:97
GroupDetail & WithAttachedManagedPolicies(const Aws::Vector< AttachedPolicy > &value)
GroupDetail & WithCreateDate(const Aws::Utils::DateTime &value)
GroupDetail & WithAttachedManagedPolicies(Aws::Vector< AttachedPolicy > &&value)
void SetArn(const Aws::String &value)
Definition GroupDetail.h:99
GroupDetail & WithGroupId(const Aws::String &value)
Definition GroupDetail.h:90
GroupDetail & WithGroupName(const Aws::String &value)
Definition GroupDetail.h:73
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API GroupDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGroupName(Aws::String &&value)
Definition GroupDetail.h:71
void SetGroupId(const Aws::String &value)
Definition GroupDetail.h:87
void SetArn(Aws::String &&value)
void SetGroupPolicyList(const Aws::Vector< PolicyDetail > &value)
GroupDetail & WithPath(const char *value)
Definition GroupDetail.h:61
void SetArn(const char *value)
void SetAttachedManagedPolicies(Aws::Vector< AttachedPolicy > &&value)
GroupDetail & WithGroupName(Aws::String &&value)
Definition GroupDetail.h:74
GroupDetail & AddGroupPolicyList(const PolicyDetail &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
void SetAttachedManagedPolicies(const Aws::Vector< AttachedPolicy > &value)
bool GroupPolicyListHasBeenSet() const
GroupDetail & WithPath(const Aws::String &value)
Definition GroupDetail.h:59
AWS_IAM_API GroupDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPath(const Aws::String &value)
Definition GroupDetail.h:56
void SetGroupName(const char *value)
Definition GroupDetail.h:72
const Aws::Utils::DateTime & GetCreateDate() const
GroupDetail & WithArn(Aws::String &&value)
void SetGroupId(const char *value)
Definition GroupDetail.h:89
GroupDetail & WithGroupId(const char *value)
Definition GroupDetail.h:92
GroupDetail & AddAttachedManagedPolicies(const AttachedPolicy &value)
void SetPath(Aws::String &&value)
Definition GroupDetail.h:57
const Aws::Vector< AttachedPolicy > & GetAttachedManagedPolicies() const
void SetGroupPolicyList(Aws::Vector< PolicyDetail > &&value)
GroupDetail & AddAttachedManagedPolicies(AttachedPolicy &&value)
const Aws::Vector< PolicyDetail > & GetGroupPolicyList() const
void SetGroupName(const Aws::String &value)
Definition GroupDetail.h:70
GroupDetail & WithGroupPolicyList(const Aws::Vector< PolicyDetail > &value)
const Aws::String & GetPath() const
Definition GroupDetail.h:54
GroupDetail & WithArn(const char *value)
GroupDetail & WithCreateDate(Aws::Utils::DateTime &&value)
void SetPath(const char *value)
Definition GroupDetail.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream