AWS SDK for C++  0.14.3
AWS SDK for C++
ListEntitiesForPolicyRequest.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/IAMRequest.h>
20 
21 namespace Aws
22 {
23 namespace IAM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
43  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
44 
52  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
53 
61  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
62 
70  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
71 
79  inline ListEntitiesForPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
80 
88  inline ListEntitiesForPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(value); return *this;}
89 
97  inline ListEntitiesForPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
98 
106  inline const EntityType& GetEntityFilter() const{ return m_entityFilter; }
107 
115  inline void SetEntityFilter(const EntityType& value) { m_entityFilterHasBeenSet = true; m_entityFilter = value; }
116 
124  inline void SetEntityFilter(EntityType&& value) { m_entityFilterHasBeenSet = true; m_entityFilter = value; }
125 
133  inline ListEntitiesForPolicyRequest& WithEntityFilter(const EntityType& value) { SetEntityFilter(value); return *this;}
134 
142  inline ListEntitiesForPolicyRequest& WithEntityFilter(EntityType&& value) { SetEntityFilter(value); return *this;}
143 
153  inline const Aws::String& GetPathPrefix() const{ return m_pathPrefix; }
154 
164  inline void SetPathPrefix(const Aws::String& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = value; }
165 
175  inline void SetPathPrefix(Aws::String&& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = value; }
176 
186  inline void SetPathPrefix(const char* value) { m_pathPrefixHasBeenSet = true; m_pathPrefix.assign(value); }
187 
197  inline ListEntitiesForPolicyRequest& WithPathPrefix(const Aws::String& value) { SetPathPrefix(value); return *this;}
198 
208  inline ListEntitiesForPolicyRequest& WithPathPrefix(Aws::String&& value) { SetPathPrefix(value); return *this;}
209 
219  inline ListEntitiesForPolicyRequest& WithPathPrefix(const char* value) { SetPathPrefix(value); return *this;}
220 
227  inline const Aws::String& GetMarker() const{ return m_marker; }
228 
235  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
236 
243  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
244 
251  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
252 
259  inline ListEntitiesForPolicyRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
260 
267  inline ListEntitiesForPolicyRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
268 
275  inline ListEntitiesForPolicyRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
276 
287  inline int GetMaxItems() const{ return m_maxItems; }
288 
299  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
300 
311  inline ListEntitiesForPolicyRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
312 
313  private:
314  Aws::String m_policyArn;
315  bool m_policyArnHasBeenSet;
316  EntityType m_entityFilter;
317  bool m_entityFilterHasBeenSet;
318  Aws::String m_pathPrefix;
319  bool m_pathPrefixHasBeenSet;
320  Aws::String m_marker;
321  bool m_markerHasBeenSet;
322  int m_maxItems;
323  bool m_maxItemsHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace IAM
328 } // namespace Aws
ListEntitiesForPolicyRequest & WithPathPrefix(Aws::String &&value)
ListEntitiesForPolicyRequest & WithMarker(const char *value)
ListEntitiesForPolicyRequest & WithPathPrefix(const Aws::String &value)
ListEntitiesForPolicyRequest & WithEntityFilter(EntityType &&value)
ListEntitiesForPolicyRequest & WithMarker(Aws::String &&value)
ListEntitiesForPolicyRequest & WithEntityFilter(const EntityType &value)
ListEntitiesForPolicyRequest & WithPathPrefix(const char *value)
ListEntitiesForPolicyRequest & WithPolicyArn(const char *value)
ListEntitiesForPolicyRequest & WithPolicyArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
ListEntitiesForPolicyRequest & WithMarker(const Aws::String &value)
ListEntitiesForPolicyRequest & WithMaxItems(int value)
ListEntitiesForPolicyRequest & WithPolicyArn(const Aws::String &value)
JSON (JavaScript Object Notation).