AWS SDK for C++  1.8.7
AWS SDK for C++
Group.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace IAM
23 {
24 namespace Model
25 {
26 
36  {
37  public:
38  Group();
39  Group(const Aws::Utils::Xml::XmlNode& xmlNode);
40  Group& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
51  inline const Aws::String& GetPath() const{ return m_path; }
52 
58  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 
65  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
66 
72  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
73 
79  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
80 
86  inline Group& WithPath(const Aws::String& value) { SetPath(value); return *this;}
87 
93  inline Group& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
94 
100  inline Group& WithPath(const char* value) { SetPath(value); return *this;}
101 
102 
106  inline const Aws::String& GetGroupName() const{ return m_groupName; }
107 
111  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
112 
116  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
117 
121  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
122 
126  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
127 
131  inline Group& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
132 
136  inline Group& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
137 
141  inline Group& WithGroupName(const char* value) { SetGroupName(value); return *this;}
142 
143 
150  inline const Aws::String& GetGroupId() const{ return m_groupId; }
151 
158  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
159 
166  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
167 
174  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
175 
182  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
183 
190  inline Group& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
191 
198  inline Group& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
199 
206  inline Group& WithGroupId(const char* value) { SetGroupId(value); return *this;}
207 
208 
215  inline const Aws::String& GetArn() const{ return m_arn; }
216 
223  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
224 
231  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
232 
239  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
240 
247  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
248 
255  inline Group& WithArn(const Aws::String& value) { SetArn(value); return *this;}
256 
263  inline Group& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
264 
271  inline Group& WithArn(const char* value) { SetArn(value); return *this;}
272 
273 
278  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
279 
284  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
285 
290  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
291 
296  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
297 
302  inline Group& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
303 
308  inline Group& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
309 
310  private:
311 
312  Aws::String m_path;
313  bool m_pathHasBeenSet;
314 
315  Aws::String m_groupName;
316  bool m_groupNameHasBeenSet;
317 
318  Aws::String m_groupId;
319  bool m_groupIdHasBeenSet;
320 
321  Aws::String m_arn;
322  bool m_arnHasBeenSet;
323 
324  Aws::Utils::DateTime m_createDate;
325  bool m_createDateHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace IAM
330 } // namespace Aws
Group & WithGroupName(Aws::String &&value)
Definition: Group.h:136
const Aws::String & GetArn() const
Definition: Group.h:215
Group & WithGroupId(Aws::String &&value)
Definition: Group.h:198
Group & WithArn(Aws::String &&value)
Definition: Group.h:263
void SetPath(const char *value)
Definition: Group.h:79
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: Group.h:296
Group & WithGroupName(const char *value)
Definition: Group.h:141
Group & WithArn(const char *value)
Definition: Group.h:271
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: Group.h:290
const Aws::Utils::DateTime & GetCreateDate() const
Definition: Group.h:278
void SetPath(const Aws::String &value)
Definition: Group.h:65
int index
Definition: cJSON.h:171
Group & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: Group.h:308
void SetArn(Aws::String &&value)
Definition: Group.h:239
void SetPath(Aws::String &&value)
Definition: Group.h:72
const Aws::String & GetGroupName() const
Definition: Group.h:106
const Aws::String & GetGroupId() const
Definition: Group.h:150
Group & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: Group.h:302
void SetGroupName(const Aws::String &value)
Definition: Group.h:116
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
void SetGroupId(const char *value)
Definition: Group.h:182
Group & WithGroupName(const Aws::String &value)
Definition: Group.h:131
Group & WithArn(const Aws::String &value)
Definition: Group.h:255
bool GroupIdHasBeenSet() const
Definition: Group.h:158
void SetGroupId(Aws::String &&value)
Definition: Group.h:174
const Aws::String & GetPath() const
Definition: Group.h:51
Group & WithGroupId(const Aws::String &value)
Definition: Group.h:190
bool CreateDateHasBeenSet() const
Definition: Group.h:284
bool ArnHasBeenSet() const
Definition: Group.h:223
Group & WithPath(Aws::String &&value)
Definition: Group.h:93
void SetGroupId(const Aws::String &value)
Definition: Group.h:166
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetGroupName(Aws::String &&value)
Definition: Group.h:121
Group & WithPath(const Aws::String &value)
Definition: Group.h:86
Group & WithPath(const char *value)
Definition: Group.h:100
void SetArn(const char *value)
Definition: Group.h:247
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Group & WithGroupId(const char *value)
Definition: Group.h:206
void SetGroupName(const char *value)
Definition: Group.h:126
bool GroupNameHasBeenSet() const
Definition: Group.h:111
bool PathHasBeenSet() const
Definition: Group.h:58
void SetArn(const Aws::String &value)
Definition: Group.h:231