AWS SDK for C++  0.14.3
AWS SDK for C++
ListEntitiesForPolicyResult.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>
23 
24 namespace Aws
25 {
26 template<typename RESULT_TYPE>
27 class AmazonWebServiceResult;
28 
29 namespace Utils
30 {
31 namespace Xml
32 {
33  class XmlDocument;
34 } // namespace Xml
35 } // namespace Utils
36 namespace IAM
37 {
38 namespace Model
39 {
45  {
46  public:
50 
54  inline const Aws::Vector<PolicyGroup>& GetPolicyGroups() const{ return m_policyGroups; }
55 
59  inline void SetPolicyGroups(const Aws::Vector<PolicyGroup>& value) { m_policyGroups = value; }
60 
64  inline void SetPolicyGroups(Aws::Vector<PolicyGroup>&& value) { m_policyGroups = value; }
65 
69  inline ListEntitiesForPolicyResult& WithPolicyGroups(const Aws::Vector<PolicyGroup>& value) { SetPolicyGroups(value); return *this;}
70 
74  inline ListEntitiesForPolicyResult& WithPolicyGroups(Aws::Vector<PolicyGroup>&& value) { SetPolicyGroups(value); return *this;}
75 
79  inline ListEntitiesForPolicyResult& AddPolicyGroups(const PolicyGroup& value) { m_policyGroups.push_back(value); return *this; }
80 
84  inline ListEntitiesForPolicyResult& AddPolicyGroups(PolicyGroup&& value) { m_policyGroups.push_back(value); return *this; }
85 
89  inline const Aws::Vector<PolicyUser>& GetPolicyUsers() const{ return m_policyUsers; }
90 
94  inline void SetPolicyUsers(const Aws::Vector<PolicyUser>& value) { m_policyUsers = value; }
95 
99  inline void SetPolicyUsers(Aws::Vector<PolicyUser>&& value) { m_policyUsers = value; }
100 
104  inline ListEntitiesForPolicyResult& WithPolicyUsers(const Aws::Vector<PolicyUser>& value) { SetPolicyUsers(value); return *this;}
105 
109  inline ListEntitiesForPolicyResult& WithPolicyUsers(Aws::Vector<PolicyUser>&& value) { SetPolicyUsers(value); return *this;}
110 
114  inline ListEntitiesForPolicyResult& AddPolicyUsers(const PolicyUser& value) { m_policyUsers.push_back(value); return *this; }
115 
119  inline ListEntitiesForPolicyResult& AddPolicyUsers(PolicyUser&& value) { m_policyUsers.push_back(value); return *this; }
120 
124  inline const Aws::Vector<PolicyRole>& GetPolicyRoles() const{ return m_policyRoles; }
125 
129  inline void SetPolicyRoles(const Aws::Vector<PolicyRole>& value) { m_policyRoles = value; }
130 
134  inline void SetPolicyRoles(Aws::Vector<PolicyRole>&& value) { m_policyRoles = value; }
135 
139  inline ListEntitiesForPolicyResult& WithPolicyRoles(const Aws::Vector<PolicyRole>& value) { SetPolicyRoles(value); return *this;}
140 
144  inline ListEntitiesForPolicyResult& WithPolicyRoles(Aws::Vector<PolicyRole>&& value) { SetPolicyRoles(value); return *this;}
145 
149  inline ListEntitiesForPolicyResult& AddPolicyRoles(const PolicyRole& value) { m_policyRoles.push_back(value); return *this; }
150 
154  inline ListEntitiesForPolicyResult& AddPolicyRoles(PolicyRole&& value) { m_policyRoles.push_back(value); return *this; }
155 
165  inline bool GetIsTruncated() const{ return m_isTruncated; }
166 
176  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
177 
187  inline ListEntitiesForPolicyResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
188 
194  inline const Aws::String& GetMarker() const{ return m_marker; }
195 
201  inline void SetMarker(const Aws::String& value) { m_marker = value; }
202 
208  inline void SetMarker(Aws::String&& value) { m_marker = value; }
209 
215  inline void SetMarker(const char* value) { m_marker.assign(value); }
216 
222  inline ListEntitiesForPolicyResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
223 
229  inline ListEntitiesForPolicyResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
230 
236  inline ListEntitiesForPolicyResult& WithMarker(const char* value) { SetMarker(value); return *this;}
237 
238 
239  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
240 
241 
242  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
243 
244 
245  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
246 
247 
248  inline ListEntitiesForPolicyResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
249 
250 
251  inline ListEntitiesForPolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
252 
253  private:
254  Aws::Vector<PolicyGroup> m_policyGroups;
255  Aws::Vector<PolicyUser> m_policyUsers;
256  Aws::Vector<PolicyRole> m_policyRoles;
257  bool m_isTruncated;
258  Aws::String m_marker;
259  ResponseMetadata m_responseMetadata;
260  };
261 
262 } // namespace Model
263 } // namespace IAM
264 } // namespace Aws
const Aws::Vector< PolicyRole > & GetPolicyRoles() const
const Aws::Vector< PolicyGroup > & GetPolicyGroups() const
void SetPolicyUsers(Aws::Vector< PolicyUser > &&value)
ListEntitiesForPolicyResult & AddPolicyUsers(const PolicyUser &value)
ListEntitiesForPolicyResult & WithPolicyUsers(const Aws::Vector< PolicyUser > &value)
ListEntitiesForPolicyResult & WithMarker(const Aws::String &value)
ListEntitiesForPolicyResult & AddPolicyRoles(PolicyRole &&value)
ListEntitiesForPolicyResult & WithPolicyGroups(const Aws::Vector< PolicyGroup > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListEntitiesForPolicyResult & AddPolicyRoles(const PolicyRole &value)
void SetPolicyGroups(Aws::Vector< PolicyGroup > &&value)
ListEntitiesForPolicyResult & AddPolicyUsers(PolicyUser &&value)
const Aws::Vector< PolicyUser > & GetPolicyUsers() const
ListEntitiesForPolicyResult & WithPolicyGroups(Aws::Vector< PolicyGroup > &&value)
ListEntitiesForPolicyResult & WithPolicyRoles(const Aws::Vector< PolicyRole > &value)
void SetPolicyUsers(const Aws::Vector< PolicyUser > &value)
ListEntitiesForPolicyResult & AddPolicyGroups(PolicyGroup &&value)
void SetPolicyRoles(const Aws::Vector< PolicyRole > &value)
ListEntitiesForPolicyResult & WithMarker(const char *value)
ListEntitiesForPolicyResult & WithMarker(Aws::String &&value)
void SetResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListEntitiesForPolicyResult & WithPolicyUsers(Aws::Vector< PolicyUser > &&value)
ListEntitiesForPolicyResult & WithResponseMetadata(ResponseMetadata &&value)
void SetPolicyRoles(Aws::Vector< PolicyRole > &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
ListEntitiesForPolicyResult & WithIsTruncated(bool value)
ListEntitiesForPolicyResult & WithPolicyRoles(Aws::Vector< PolicyRole > &&value)
void SetPolicyGroups(const Aws::Vector< PolicyGroup > &value)
JSON (JavaScript Object Notation).
ListEntitiesForPolicyResult & WithResponseMetadata(const ResponseMetadata &value)
ListEntitiesForPolicyResult & AddPolicyGroups(const PolicyGroup &value)