AWS SDK for C++  1.8.55
AWS SDK for C++
ListGroupsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
11 #include <aws/iam/model/Group.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace IAM
27 {
28 namespace Model
29 {
37  {
38  public:
42 
43 
47  inline const Aws::Vector<Group>& GetGroups() const{ return m_groups; }
48 
52  inline void SetGroups(const Aws::Vector<Group>& value) { m_groups = value; }
53 
57  inline void SetGroups(Aws::Vector<Group>&& value) { m_groups = std::move(value); }
58 
62  inline ListGroupsResult& WithGroups(const Aws::Vector<Group>& value) { SetGroups(value); return *this;}
63 
67  inline ListGroupsResult& WithGroups(Aws::Vector<Group>&& value) { SetGroups(std::move(value)); return *this;}
68 
72  inline ListGroupsResult& AddGroups(const Group& value) { m_groups.push_back(value); return *this; }
73 
77  inline ListGroupsResult& AddGroups(Group&& value) { m_groups.push_back(std::move(value)); return *this; }
78 
79 
89  inline bool GetIsTruncated() const{ return m_isTruncated; }
90 
100  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
101 
111  inline ListGroupsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
112 
113 
119  inline const Aws::String& GetMarker() const{ return m_marker; }
120 
126  inline void SetMarker(const Aws::String& value) { m_marker = value; }
127 
133  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
134 
140  inline void SetMarker(const char* value) { m_marker.assign(value); }
141 
147  inline ListGroupsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
148 
154  inline ListGroupsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
155 
161  inline ListGroupsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
162 
163 
164 
165  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
166 
167 
168  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
169 
170 
171  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
172 
173 
174  inline ListGroupsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
175 
176 
177  inline ListGroupsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
178 
179  private:
180 
181  Aws::Vector<Group> m_groups;
182 
183  bool m_isTruncated;
184 
185  Aws::String m_marker;
186 
187  ResponseMetadata m_responseMetadata;
188  };
189 
190 } // namespace Model
191 } // namespace IAM
192 } // namespace Aws
void SetMarker(const char *value)
ListGroupsResult & AddGroups(Group &&value)
ListGroupsResult & WithGroups(const Aws::Vector< Group > &value)
ListGroupsResult & WithMarker(const Aws::String &value)
ListGroupsResult & WithMarker(const char *value)
ListGroupsResult & AddGroups(const Group &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetResponseMetadata(const ResponseMetadata &value)
ListGroupsResult & WithMarker(Aws::String &&value)
ListGroupsResult & WithResponseMetadata(ResponseMetadata &&value)
void SetMarker(Aws::String &&value)
const Aws::String & GetMarker() const
ListGroupsResult & WithGroups(Aws::Vector< Group > &&value)
void SetMarker(const Aws::String &value)
void SetGroups(Aws::Vector< Group > &&value)
void SetResponseMetadata(ResponseMetadata &&value)
const Aws::Vector< Group > & GetGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListGroupsResult & WithResponseMetadata(const ResponseMetadata &value)
const ResponseMetadata & GetResponseMetadata() const
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
void SetGroups(const Aws::Vector< Group > &value)
ListGroupsResult & WithIsTruncated(bool value)