AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Group.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
35 class Group
36 {
37 public:
38 AWS_IAM_API Group();
39 AWS_IAM_API Group(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_IAM_API Group& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
52 inline const Aws::String& GetPath() const{ return m_path; }
53 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
54 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
55 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
56 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
57 inline Group& WithPath(const Aws::String& value) { SetPath(value); return *this;}
58 inline Group& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
59 inline Group& WithPath(const char* value) { SetPath(value); return *this;}
61
63
66 inline const Aws::String& GetGroupName() const{ return m_groupName; }
67 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
68 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
69 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
70 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
71 inline Group& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
72 inline Group& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
73 inline Group& WithGroupName(const char* value) { SetGroupName(value); return *this;}
75
77
83 inline const Aws::String& GetGroupId() const{ return m_groupId; }
84 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
85 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
86 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
87 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
88 inline Group& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
89 inline Group& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
90 inline Group& WithGroupId(const char* value) { SetGroupId(value); return *this;}
92
94
100 inline const Aws::String& GetArn() const{ return m_arn; }
101 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
104 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
105 inline Group& WithArn(const Aws::String& value) { SetArn(value); return *this;}
106 inline Group& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
107 inline Group& WithArn(const char* value) { SetArn(value); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
116 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
117 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
118 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
119 inline Group& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
120 inline Group& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_path;
125 bool m_pathHasBeenSet = false;
126
127 Aws::String m_groupName;
128 bool m_groupNameHasBeenSet = false;
129
130 Aws::String m_groupId;
131 bool m_groupIdHasBeenSet = false;
132
133 Aws::String m_arn;
134 bool m_arnHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createDate;
137 bool m_createDateHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace IAM
142} // namespace Aws
Group & WithArn(const char *value)
Definition Group.h:107
Group & WithGroupId(Aws::String &&value)
Definition Group.h:89
void SetGroupId(Aws::String &&value)
Definition Group.h:86
void SetGroupName(const Aws::String &value)
Definition Group.h:68
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition Group.h:118
const Aws::Utils::DateTime & GetCreateDate() const
Definition Group.h:115
Group & WithPath(const char *value)
Definition Group.h:59
const Aws::String & GetGroupId() const
Definition Group.h:83
void SetGroupName(const char *value)
Definition Group.h:70
const Aws::String & GetPath() const
Definition Group.h:52
Group & WithGroupName(Aws::String &&value)
Definition Group.h:72
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Group & WithCreateDate(Aws::Utils::DateTime &&value)
Definition Group.h:120
void SetArn(const Aws::String &value)
Definition Group.h:102
AWS_IAM_API Group(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPath(Aws::String &&value)
Definition Group.h:55
Group & WithGroupId(const char *value)
Definition Group.h:90
bool ArnHasBeenSet() const
Definition Group.h:101
const Aws::String & GetGroupName() const
Definition Group.h:66
bool CreateDateHasBeenSet() const
Definition Group.h:116
void SetGroupId(const char *value)
Definition Group.h:87
void SetArn(const char *value)
Definition Group.h:104
Group & WithArn(const Aws::String &value)
Definition Group.h:105
const Aws::String & GetArn() const
Definition Group.h:100
Group & WithArn(Aws::String &&value)
Definition Group.h:106
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition Group.h:117
Group & WithCreateDate(const Aws::Utils::DateTime &value)
Definition Group.h:119
void SetPath(const char *value)
Definition Group.h:56
void SetGroupId(const Aws::String &value)
Definition Group.h:85
bool PathHasBeenSet() const
Definition Group.h:53
Group & WithGroupName(const Aws::String &value)
Definition Group.h:71
void SetGroupName(Aws::String &&value)
Definition Group.h:69
Group & WithGroupName(const char *value)
Definition Group.h:73
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Group & WithPath(const Aws::String &value)
Definition Group.h:57
void SetArn(Aws::String &&value)
Definition Group.h:103
bool GroupIdHasBeenSet() const
Definition Group.h:84
Group & WithPath(Aws::String &&value)
Definition Group.h:58
AWS_IAM_API Group & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPath(const Aws::String &value)
Definition Group.h:54
Group & WithGroupId(const Aws::String &value)
Definition Group.h:88
bool GroupNameHasBeenSet() const
Definition Group.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream