AWS SDK for C++  0.14.3
AWS SDK for C++
ListGroupsForUserResult.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>
20 #include <aws/iam/model/Group.h>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace IAM
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::Vector<Group>& GetGroups() const{ return m_groups; }
52 
56  inline void SetGroups(const Aws::Vector<Group>& value) { m_groups = value; }
57 
61  inline void SetGroups(Aws::Vector<Group>&& value) { m_groups = value; }
62 
66  inline ListGroupsForUserResult& WithGroups(const Aws::Vector<Group>& value) { SetGroups(value); return *this;}
67 
71  inline ListGroupsForUserResult& WithGroups(Aws::Vector<Group>&& value) { SetGroups(value); return *this;}
72 
76  inline ListGroupsForUserResult& AddGroups(const Group& value) { m_groups.push_back(value); return *this; }
77 
81  inline ListGroupsForUserResult& AddGroups(Group&& value) { m_groups.push_back(value); return *this; }
82 
92  inline bool GetIsTruncated() const{ return m_isTruncated; }
93 
103  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
104 
114  inline ListGroupsForUserResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
115 
121  inline const Aws::String& GetMarker() const{ return m_marker; }
122 
128  inline void SetMarker(const Aws::String& value) { m_marker = value; }
129 
135  inline void SetMarker(Aws::String&& value) { m_marker = value; }
136 
142  inline void SetMarker(const char* value) { m_marker.assign(value); }
143 
149  inline ListGroupsForUserResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
150 
156  inline ListGroupsForUserResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
157 
163  inline ListGroupsForUserResult& WithMarker(const char* value) { SetMarker(value); return *this;}
164 
165 
166  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
167 
168 
169  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
170 
171 
172  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
173 
174 
175  inline ListGroupsForUserResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
176 
177 
178  inline ListGroupsForUserResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
179 
180  private:
181  Aws::Vector<Group> m_groups;
182  bool m_isTruncated;
183  Aws::String m_marker;
184  ResponseMetadata m_responseMetadata;
185  };
186 
187 } // namespace Model
188 } // namespace IAM
189 } // namespace Aws
ListGroupsForUserResult & WithResponseMetadata(ResponseMetadata &&value)
void SetResponseMetadata(const ResponseMetadata &value)
ListGroupsForUserResult & WithMarker(const char *value)
ListGroupsForUserResult & WithResponseMetadata(const ResponseMetadata &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListGroupsForUserResult & AddGroups(const Group &value)
ListGroupsForUserResult & WithGroups(Aws::Vector< Group > &&value)
void SetGroups(Aws::Vector< Group > &&value)
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< Group > & GetGroups() const
ListGroupsForUserResult & WithGroups(const Aws::Vector< Group > &value)
ListGroupsForUserResult & WithIsTruncated(bool value)
void SetGroups(const Aws::Vector< Group > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListGroupsForUserResult & WithMarker(Aws::String &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
ListGroupsForUserResult & WithMarker(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
JSON (JavaScript Object Notation).
ListGroupsForUserResult & AddGroups(Group &&value)