AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyGroup.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_IAM_API PolicyGroup();
41 AWS_IAM_API PolicyGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_IAM_API PolicyGroup& 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
52 inline const Aws::String& GetGroupName() const{ return m_groupName; }
53 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
54 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
55 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
56 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
57 inline PolicyGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
58 inline PolicyGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
59 inline PolicyGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
61
63
69 inline const Aws::String& GetGroupId() const{ return m_groupId; }
70 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
71 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
72 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
73 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
74 inline PolicyGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
75 inline PolicyGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
76 inline PolicyGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
78 private:
79
80 Aws::String m_groupName;
81 bool m_groupNameHasBeenSet = false;
82
83 Aws::String m_groupId;
84 bool m_groupIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IAM
89} // namespace Aws
void SetGroupName(const Aws::String &value)
Definition PolicyGroup.h:54
const Aws::String & GetGroupId() const
Definition PolicyGroup.h:69
void SetGroupName(Aws::String &&value)
Definition PolicyGroup.h:55
PolicyGroup & WithGroupId(const char *value)
Definition PolicyGroup.h:76
AWS_IAM_API PolicyGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyGroup & WithGroupId(Aws::String &&value)
Definition PolicyGroup.h:75
void SetGroupId(const Aws::String &value)
Definition PolicyGroup.h:71
void SetGroupId(const char *value)
Definition PolicyGroup.h:73
void SetGroupId(Aws::String &&value)
Definition PolicyGroup.h:72
PolicyGroup & WithGroupName(const Aws::String &value)
Definition PolicyGroup.h:57
AWS_IAM_API PolicyGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGroupName(const char *value)
Definition PolicyGroup.h:56
PolicyGroup & WithGroupName(Aws::String &&value)
Definition PolicyGroup.h:58
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyGroup & WithGroupName(const char *value)
Definition PolicyGroup.h:59
PolicyGroup & WithGroupId(const Aws::String &value)
Definition PolicyGroup.h:74
const Aws::String & GetGroupName() const
Definition PolicyGroup.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream