AWS SDK for C++  0.12.9
AWS SDK for C++
GetGroupResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
17 #include <aws/iam/model/Group.h>
21 #include <aws/iam/model/User.h>
22 
23 namespace Aws
24 {
25 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Xml
31 {
32  class XmlDocument;
33 } // namespace Xml
34 } // namespace Utils
35 namespace IAM
36 {
37 namespace Model
38 {
43  {
44  public:
48 
52  inline const Group& GetGroup() const{ return m_group; }
53 
57  inline void SetGroup(const Group& value) { m_group = value; }
58 
62  inline void SetGroup(Group&& value) { m_group = value; }
63 
67  inline GetGroupResult& WithGroup(const Group& value) { SetGroup(value); return *this;}
68 
72  inline GetGroupResult& WithGroup(Group&& value) { SetGroup(value); return *this;}
73 
77  inline const Aws::Vector<User>& GetUsers() const{ return m_users; }
78 
82  inline void SetUsers(const Aws::Vector<User>& value) { m_users = value; }
83 
87  inline void SetUsers(Aws::Vector<User>&& value) { m_users = value; }
88 
92  inline GetGroupResult& WithUsers(const Aws::Vector<User>& value) { SetUsers(value); return *this;}
93 
97  inline GetGroupResult& WithUsers(Aws::Vector<User>&& value) { SetUsers(value); return *this;}
98 
102  inline GetGroupResult& AddUsers(const User& value) { m_users.push_back(value); return *this; }
103 
107  inline GetGroupResult& AddUsers(User&& value) { m_users.push_back(value); return *this; }
108 
118  inline bool GetIsTruncated() const{ return m_isTruncated; }
119 
129  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
130 
140  inline GetGroupResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
141 
147  inline const Aws::String& GetMarker() const{ return m_marker; }
148 
154  inline void SetMarker(const Aws::String& value) { m_marker = value; }
155 
161  inline void SetMarker(Aws::String&& value) { m_marker = value; }
162 
168  inline void SetMarker(const char* value) { m_marker.assign(value); }
169 
175  inline GetGroupResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
176 
182  inline GetGroupResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
183 
189  inline GetGroupResult& WithMarker(const char* value) { SetMarker(value); return *this;}
190 
191 
192  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
193 
194 
195  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
196 
197 
198  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
199 
200 
201  inline GetGroupResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
202 
203 
204  inline GetGroupResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
205 
206  private:
207  Group m_group;
208  Aws::Vector<User> m_users;
209  bool m_isTruncated;
210  Aws::String m_marker;
211  ResponseMetadata m_responseMetadata;
212  };
213 
214 } // namespace Model
215 } // namespace IAM
216 } // namespace Aws
const Aws::Vector< User > & GetUsers() const
GetGroupResult & WithMarker(const char *value)
void SetUsers(const Aws::Vector< User > &value)
GetGroupResult & WithMarker(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetGroupResult & WithGroup(Group &&value)
GetGroupResult & WithIsTruncated(bool value)
const ResponseMetadata & GetResponseMetadata() const
GetGroupResult & WithUsers(const Aws::Vector< User > &value)
void SetUsers(Aws::Vector< User > &&value)
void SetResponseMetadata(const ResponseMetadata &value)
GetGroupResult & WithResponseMetadata(const ResponseMetadata &value)
void SetMarker(const char *value)
void SetMarker(const Aws::String &value)
GetGroupResult & AddUsers(User &&value)
GetGroupResult & WithGroup(const Group &value)
const Aws::String & GetMarker() const
GetGroupResult & WithMarker(Aws::String &&value)
void SetGroup(Group &&value)
void SetMarker(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetGroup(const Group &value)
const Group & GetGroup() const
GetGroupResult & WithUsers(Aws::Vector< User > &&value)
GetGroupResult & WithResponseMetadata(ResponseMetadata &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
GetGroupResult & AddUsers(const User &value)
JSON (JavaScript Object Notation).