AWS SDK for C++  1.9.132
AWS SDK for C++
ListAttachedPoliciesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListAttachedPolicies"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
49  inline const Aws::String& GetTarget() const{ return m_target; }
50 
59  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
60 
69  inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
70 
79  inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
80 
89  inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
90 
99  inline ListAttachedPoliciesRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
100 
109  inline ListAttachedPoliciesRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
110 
119  inline ListAttachedPoliciesRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
120 
121 
125  inline bool GetRecursive() const{ return m_recursive; }
126 
130  inline bool RecursiveHasBeenSet() const { return m_recursiveHasBeenSet; }
131 
135  inline void SetRecursive(bool value) { m_recursiveHasBeenSet = true; m_recursive = value; }
136 
140  inline ListAttachedPoliciesRequest& WithRecursive(bool value) { SetRecursive(value); return *this;}
141 
142 
146  inline const Aws::String& GetMarker() const{ return m_marker; }
147 
151  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
152 
156  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
157 
161  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
162 
166  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
167 
171  inline ListAttachedPoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
172 
176  inline ListAttachedPoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
177 
181  inline ListAttachedPoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
182 
183 
187  inline int GetPageSize() const{ return m_pageSize; }
188 
192  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
193 
197  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
198 
202  inline ListAttachedPoliciesRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
203 
204  private:
205 
206  Aws::String m_target;
207  bool m_targetHasBeenSet;
208 
209  bool m_recursive;
210  bool m_recursiveHasBeenSet;
211 
212  Aws::String m_marker;
213  bool m_markerHasBeenSet;
214 
215  int m_pageSize;
216  bool m_pageSizeHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace IoT
221 } // namespace Aws
Aws::IoT::Model::ListAttachedPoliciesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListAttachedPoliciesRequest.h:151
Aws::IoT::Model::ListAttachedPoliciesRequest::SetTarget
void SetTarget(const Aws::String &value)
Definition: ListAttachedPoliciesRequest.h:69
Aws::IoT::Model::ListAttachedPoliciesRequest::WithPageSize
ListAttachedPoliciesRequest & WithPageSize(int value)
Definition: ListAttachedPoliciesRequest.h:202
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListAttachedPoliciesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListAttachedPoliciesRequest.h:156
Aws::IoT::Model::ListAttachedPoliciesRequest
Definition: ListAttachedPoliciesRequest.h:26
Aws::IoT::Model::ListAttachedPoliciesRequest::GetPageSize
int GetPageSize() const
Definition: ListAttachedPoliciesRequest.h:187
Aws::IoT::Model::ListAttachedPoliciesRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListAttachedPoliciesRequest.h:192
Aws::IoT::Model::ListAttachedPoliciesRequest::GetRecursive
bool GetRecursive() const
Definition: ListAttachedPoliciesRequest.h:125
Aws::IoT::Model::ListAttachedPoliciesRequest::WithMarker
ListAttachedPoliciesRequest & WithMarker(const Aws::String &value)
Definition: ListAttachedPoliciesRequest.h:171
Aws::IoT::Model::ListAttachedPoliciesRequest::WithTarget
ListAttachedPoliciesRequest & WithTarget(const char *value)
Definition: ListAttachedPoliciesRequest.h:119
Aws::IoT::Model::ListAttachedPoliciesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListAttachedPoliciesRequest.h:146
Aws::IoT::Model::ListAttachedPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAttachedPoliciesRequest.h:34
Aws::IoT::Model::ListAttachedPoliciesRequest::WithRecursive
ListAttachedPoliciesRequest & WithRecursive(bool value)
Definition: ListAttachedPoliciesRequest.h:140
Aws::IoT::Model::ListAttachedPoliciesRequest::WithMarker
ListAttachedPoliciesRequest & WithMarker(const char *value)
Definition: ListAttachedPoliciesRequest.h:181
Aws::IoT::Model::ListAttachedPoliciesRequest::GetTarget
const Aws::String & GetTarget() const
Definition: ListAttachedPoliciesRequest.h:49
Aws::IoT::Model::ListAttachedPoliciesRequest::SetTarget
void SetTarget(const char *value)
Definition: ListAttachedPoliciesRequest.h:89
Aws::IoT::Model::ListAttachedPoliciesRequest::SetRecursive
void SetRecursive(bool value)
Definition: ListAttachedPoliciesRequest.h:135
AWSString.h
Aws::IoT::Model::ListAttachedPoliciesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListAttachedPoliciesRequest::SetPageSize
void SetPageSize(int value)
Definition: ListAttachedPoliciesRequest.h:197
Aws::IoT::Model::ListAttachedPoliciesRequest::WithTarget
ListAttachedPoliciesRequest & WithTarget(Aws::String &&value)
Definition: ListAttachedPoliciesRequest.h:109
Aws::IoT::Model::ListAttachedPoliciesRequest::WithTarget
ListAttachedPoliciesRequest & WithTarget(const Aws::String &value)
Definition: ListAttachedPoliciesRequest.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListAttachedPoliciesRequest::SetTarget
void SetTarget(Aws::String &&value)
Definition: ListAttachedPoliciesRequest.h:79
Aws::IoT::Model::ListAttachedPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListAttachedPoliciesRequest::WithMarker
ListAttachedPoliciesRequest & WithMarker(Aws::String &&value)
Definition: ListAttachedPoliciesRequest.h:176
Aws::IoT::Model::ListAttachedPoliciesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListAttachedPoliciesRequest.h:161
IoTRequest.h
Aws::IoT::Model::ListAttachedPoliciesRequest::RecursiveHasBeenSet
bool RecursiveHasBeenSet() const
Definition: ListAttachedPoliciesRequest.h:130
Aws::IoT::Model::ListAttachedPoliciesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListAttachedPoliciesRequest.h:166
Aws::IoT::Model::ListAttachedPoliciesRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: ListAttachedPoliciesRequest.h:59
IoT_EXPORTS.h
Aws::IoT::Model::ListAttachedPoliciesRequest::ListAttachedPoliciesRequest
ListAttachedPoliciesRequest()