AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
39 class Group
40 {
41 public:
42 AWS_IAM_API Group() = default;
43 AWS_IAM_API Group(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_IAM_API Group& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
56 inline const Aws::String& GetPath() const { return m_path; }
57 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
58 template<typename PathT = Aws::String>
59 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
60 template<typename PathT = Aws::String>
61 Group& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
63
65
68 inline const Aws::String& GetGroupName() const { return m_groupName; }
69 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
70 template<typename GroupNameT = Aws::String>
71 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
72 template<typename GroupNameT = Aws::String>
73 Group& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
75
77
83 inline const Aws::String& GetGroupId() const { return m_groupId; }
84 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
85 template<typename GroupIdT = Aws::String>
86 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
87 template<typename GroupIdT = Aws::String>
88 Group& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
90
92
98 inline const Aws::String& GetArn() const { return m_arn; }
99 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
100 template<typename ArnT = Aws::String>
101 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
102 template<typename ArnT = Aws::String>
103 Group& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
112 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
113 template<typename CreateDateT = Aws::Utils::DateTime>
114 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
115 template<typename CreateDateT = Aws::Utils::DateTime>
116 Group& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
118 private:
119
120 Aws::String m_path;
121 bool m_pathHasBeenSet = false;
122
123 Aws::String m_groupName;
124 bool m_groupNameHasBeenSet = false;
125
126 Aws::String m_groupId;
127 bool m_groupIdHasBeenSet = false;
128
129 Aws::String m_arn;
130 bool m_arnHasBeenSet = false;
131
132 Aws::Utils::DateTime m_createDate{};
133 bool m_createDateHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace IAM
138} // namespace Aws
void SetArn(ArnT &&value)
Definition Group.h:101
Group & WithGroupName(GroupNameT &&value)
Definition Group.h:73
Group & WithCreateDate(CreateDateT &&value)
Definition Group.h:116
const Aws::Utils::DateTime & GetCreateDate() const
Definition Group.h:111
const Aws::String & GetGroupId() const
Definition Group.h:83
const Aws::String & GetPath() const
Definition Group.h:56
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGroupName(GroupNameT &&value)
Definition Group.h:71
AWS_IAM_API Group(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGroupId(GroupIdT &&value)
Definition Group.h:86
bool ArnHasBeenSet() const
Definition Group.h:99
const Aws::String & GetGroupName() const
Definition Group.h:68
void SetCreateDate(CreateDateT &&value)
Definition Group.h:114
bool CreateDateHasBeenSet() const
Definition Group.h:112
void SetPath(PathT &&value)
Definition Group.h:59
Group & WithArn(ArnT &&value)
Definition Group.h:103
const Aws::String & GetArn() const
Definition Group.h:98
Group & WithGroupId(GroupIdT &&value)
Definition Group.h:88
bool PathHasBeenSet() const
Definition Group.h:57
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GroupIdHasBeenSet() const
Definition Group.h:84
AWS_IAM_API Group & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Group & WithPath(PathT &&value)
Definition Group.h:61
AWS_IAM_API Group()=default
bool GroupNameHasBeenSet() const
Definition Group.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream