AWS SDK for C++  1.9.16
AWS SDK for C++
ListAccessPoliciesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace IoTSiteWise
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListAccessPolicies"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
47  inline const IdentityType& GetIdentityType() const{ return m_identityType; }
48 
53  inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
54 
59  inline void SetIdentityType(const IdentityType& value) { m_identityTypeHasBeenSet = true; m_identityType = value; }
60 
65  inline void SetIdentityType(IdentityType&& value) { m_identityTypeHasBeenSet = true; m_identityType = std::move(value); }
66 
71  inline ListAccessPoliciesRequest& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;}
72 
77  inline ListAccessPoliciesRequest& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;}
78 
79 
84  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
85 
90  inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
91 
96  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
97 
102  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
103 
108  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
109 
114  inline ListAccessPoliciesRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
115 
120  inline ListAccessPoliciesRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
121 
126  inline ListAccessPoliciesRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
127 
128 
133  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
134 
139  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
140 
145  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
146 
151  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
152 
157  inline ListAccessPoliciesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
158 
163  inline ListAccessPoliciesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
164 
165 
170  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
171 
176  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
177 
182  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
183 
188  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
189 
194  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
195 
200  inline ListAccessPoliciesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
201 
206  inline ListAccessPoliciesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
207 
212  inline ListAccessPoliciesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
213 
214 
221  inline const Aws::String& GetIamArn() const{ return m_iamArn; }
222 
229  inline bool IamArnHasBeenSet() const { return m_iamArnHasBeenSet; }
230 
237  inline void SetIamArn(const Aws::String& value) { m_iamArnHasBeenSet = true; m_iamArn = value; }
238 
245  inline void SetIamArn(Aws::String&& value) { m_iamArnHasBeenSet = true; m_iamArn = std::move(value); }
246 
253  inline void SetIamArn(const char* value) { m_iamArnHasBeenSet = true; m_iamArn.assign(value); }
254 
261  inline ListAccessPoliciesRequest& WithIamArn(const Aws::String& value) { SetIamArn(value); return *this;}
262 
269  inline ListAccessPoliciesRequest& WithIamArn(Aws::String&& value) { SetIamArn(std::move(value)); return *this;}
270 
277  inline ListAccessPoliciesRequest& WithIamArn(const char* value) { SetIamArn(value); return *this;}
278 
279 
283  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
284 
288  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
289 
293  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
294 
298  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
299 
303  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
304 
308  inline ListAccessPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
309 
313  inline ListAccessPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
314 
318  inline ListAccessPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
319 
320 
325  inline int GetMaxResults() const{ return m_maxResults; }
326 
331  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
332 
337  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
338 
343  inline ListAccessPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
344 
345  private:
346 
347  IdentityType m_identityType;
348  bool m_identityTypeHasBeenSet;
349 
350  Aws::String m_identityId;
351  bool m_identityIdHasBeenSet;
352 
353  ResourceType m_resourceType;
354  bool m_resourceTypeHasBeenSet;
355 
356  Aws::String m_resourceId;
357  bool m_resourceIdHasBeenSet;
358 
359  Aws::String m_iamArn;
360  bool m_iamArnHasBeenSet;
361 
362  Aws::String m_nextToken;
363  bool m_nextTokenHasBeenSet;
364 
365  int m_maxResults;
366  bool m_maxResultsHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace IoTSiteWise
371 } // namespace Aws
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::IamArnHasBeenSet
bool IamArnHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:229
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIdentityId
ListAccessPoliciesRequest & WithIdentityId(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:120
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: ListAccessPoliciesRequest.h:133
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIamArn
void SetIamArn(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:245
ResourceType.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIdentityId
ListAccessPoliciesRequest & WithIdentityId(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:114
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithResourceType
ListAccessPoliciesRequest & WithResourceType(ResourceType &&value)
Definition: ListAccessPoliciesRequest.h:163
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIamArn
ListAccessPoliciesRequest & WithIamArn(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:261
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIdentityType
void SetIdentityType(const IdentityType &value)
Definition: ListAccessPoliciesRequest.h:59
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:288
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:331
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:176
IdentityType.h
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccessPoliciesRequest.h:337
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest
Definition: ListAccessPoliciesRequest.h:28
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIamArn
void SetIamArn(const char *value)
Definition: ListAccessPoliciesRequest.h:253
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetResourceId
void SetResourceId(const char *value)
Definition: ListAccessPoliciesRequest.h:194
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::ListAccessPoliciesRequest
ListAccessPoliciesRequest()
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccessPoliciesRequest.h:283
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIamArn
ListAccessPoliciesRequest & WithIamArn(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:269
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIdentityType
ListAccessPoliciesRequest & WithIdentityType(const IdentityType &value)
Definition: ListAccessPoliciesRequest.h:71
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithNextToken
ListAccessPoliciesRequest & WithNextToken(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:313
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:90
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithNextToken
ListAccessPoliciesRequest & WithNextToken(const char *value)
Definition: ListAccessPoliciesRequest.h:318
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithResourceId
ListAccessPoliciesRequest & WithResourceId(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:200
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithResourceId
ListAccessPoliciesRequest & WithResourceId(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:206
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIdentityId
ListAccessPoliciesRequest & WithIdentityId(const char *value)
Definition: ListAccessPoliciesRequest.h:126
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: ListAccessPoliciesRequest.h:145
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:96
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIdentityType
void SetIdentityType(IdentityType &&value)
Definition: ListAccessPoliciesRequest.h:65
AWSString.h
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:188
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetIamArn
const Aws::String & GetIamArn() const
Definition: ListAccessPoliciesRequest.h:221
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:102
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: ListAccessPoliciesRequest.h:108
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:139
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithMaxResults
ListAccessPoliciesRequest & WithMaxResults(int value)
Definition: ListAccessPoliciesRequest.h:343
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIdentityType
ListAccessPoliciesRequest & WithIdentityType(IdentityType &&value)
Definition: ListAccessPoliciesRequest.h:77
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithNextToken
ListAccessPoliciesRequest & WithNextToken(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:308
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetIamArn
void SetIamArn(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:237
Aws::IoTSiteWise::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccessPoliciesRequest.h:303
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::IdentityType
IdentityType
Definition: IdentityType.h:17
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: ListAccessPoliciesRequest.h:84
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithResourceType
ListAccessPoliciesRequest & WithResourceType(const ResourceType &value)
Definition: ListAccessPoliciesRequest.h:157
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccessPoliciesRequest.h:36
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::IdentityTypeHasBeenSet
bool IdentityTypeHasBeenSet() const
Definition: ListAccessPoliciesRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: ListAccessPoliciesRequest.h:151
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithResourceId
ListAccessPoliciesRequest & WithResourceId(const char *value)
Definition: ListAccessPoliciesRequest.h:212
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccessPoliciesRequest.h:298
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetIdentityType
const IdentityType & GetIdentityType() const
Definition: ListAccessPoliciesRequest.h:47
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:182
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: ListAccessPoliciesRequest.h:170
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccessPoliciesRequest.h:293
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::WithIamArn
ListAccessPoliciesRequest & WithIamArn(const char *value)
Definition: ListAccessPoliciesRequest.h:277
Aws::IoTSiteWise::Model::ListAccessPoliciesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccessPoliciesRequest.h:325