AWS SDK for C++  1.9.40
AWS SDK for C++
ListResourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RAM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListResources"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const ResourceOwner& GetResourceOwner() const{ return m_resourceOwner; }
41 
45  inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
46 
50  inline void SetResourceOwner(const ResourceOwner& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
51 
55  inline void SetResourceOwner(ResourceOwner&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
56 
60  inline ListResourcesRequest& WithResourceOwner(const ResourceOwner& value) { SetResourceOwner(value); return *this;}
61 
65  inline ListResourcesRequest& WithResourceOwner(ResourceOwner&& value) { SetResourceOwner(std::move(value)); return *this;}
66 
67 
71  inline const Aws::String& GetPrincipal() const{ return m_principal; }
72 
76  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
77 
81  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
82 
86  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
87 
91  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
92 
96  inline ListResourcesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
97 
101  inline ListResourcesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
102 
106  inline ListResourcesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
107 
108 
128  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
129 
149  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
150 
170  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
171 
191  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
192 
212  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
213 
233  inline ListResourcesRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
234 
254  inline ListResourcesRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
255 
275  inline ListResourcesRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
276 
277 
281  inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
282 
286  inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
287 
291  inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
292 
296  inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
297 
301  inline ListResourcesRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
302 
306  inline ListResourcesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
307 
311  inline ListResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
312 
316  inline ListResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
317 
321  inline ListResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
322 
323 
327  inline const Aws::Vector<Aws::String>& GetResourceShareArns() const{ return m_resourceShareArns; }
328 
332  inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
333 
337  inline void SetResourceShareArns(const Aws::Vector<Aws::String>& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; }
338 
342  inline void SetResourceShareArns(Aws::Vector<Aws::String>&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); }
343 
347  inline ListResourcesRequest& WithResourceShareArns(const Aws::Vector<Aws::String>& value) { SetResourceShareArns(value); return *this;}
348 
352  inline ListResourcesRequest& WithResourceShareArns(Aws::Vector<Aws::String>&& value) { SetResourceShareArns(std::move(value)); return *this;}
353 
357  inline ListResourcesRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
358 
362  inline ListResourcesRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; }
363 
367  inline ListResourcesRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
368 
369 
373  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
374 
378  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
379 
383  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
384 
388  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
389 
393  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
394 
398  inline ListResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
399 
403  inline ListResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
404 
408  inline ListResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
409 
410 
416  inline int GetMaxResults() const{ return m_maxResults; }
417 
423  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
424 
430  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
431 
437  inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
438 
439  private:
440 
441  ResourceOwner m_resourceOwner;
442  bool m_resourceOwnerHasBeenSet;
443 
444  Aws::String m_principal;
445  bool m_principalHasBeenSet;
446 
447  Aws::String m_resourceType;
448  bool m_resourceTypeHasBeenSet;
449 
450  Aws::Vector<Aws::String> m_resourceArns;
451  bool m_resourceArnsHasBeenSet;
452 
453  Aws::Vector<Aws::String> m_resourceShareArns;
454  bool m_resourceShareArnsHasBeenSet;
455 
456  Aws::String m_nextToken;
457  bool m_nextTokenHasBeenSet;
458 
459  int m_maxResults;
460  bool m_maxResultsHasBeenSet;
461  };
462 
463 } // namespace Model
464 } // namespace RAM
465 } // namespace Aws
Aws::RAM::Model::ListResourcesRequest::WithResourceType
ListResourcesRequest & WithResourceType(Aws::String &&value)
Definition: ListResourcesRequest.h:254
Aws::RAM::Model::ListResourcesRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: ListResourcesRequest.h:76
Aws::RAM::Model::ListResourcesRequest::SetResourceArns
void SetResourceArns(Aws::Vector< Aws::String > &&value)
Definition: ListResourcesRequest.h:296
Aws::RAM::Model::ListResourcesRequest::AddResourceShareArns
ListResourcesRequest & AddResourceShareArns(const Aws::String &value)
Definition: ListResourcesRequest.h:357
Aws::RAM::Model::ListResourcesRequest::AddResourceShareArns
ListResourcesRequest & AddResourceShareArns(const char *value)
Definition: ListResourcesRequest.h:367
Aws::RAM::Model::ListResourcesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListResourcesRequest.h:383
Aws::RAM::Model::ListResourcesRequest::SetResourceShareArns
void SetResourceShareArns(Aws::Vector< Aws::String > &&value)
Definition: ListResourcesRequest.h:342
Aws::RAM::Model::ListResourcesRequest::WithResourceArns
ListResourcesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
Definition: ListResourcesRequest.h:306
Aws::RAM::Model::ListResourcesRequest::GetResourceArns
const Aws::Vector< Aws::String > & GetResourceArns() const
Definition: ListResourcesRequest.h:281
Aws::RAM::Model::ListResourcesRequest::WithResourceShareArns
ListResourcesRequest & WithResourceShareArns(Aws::Vector< Aws::String > &&value)
Definition: ListResourcesRequest.h:352
RAMRequest.h
Aws::RAM::Model::ListResourcesRequest::ResourceShareArnsHasBeenSet
bool ResourceShareArnsHasBeenSet() const
Definition: ListResourcesRequest.h:332
Aws::RAM::Model::ListResourcesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListResourcesRequest.h:393
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RAM::Model::ListResourcesRequest::SetResourceOwner
void SetResourceOwner(const ResourceOwner &value)
Definition: ListResourcesRequest.h:50
Aws::RAM::Model::ListResourcesRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: ListResourcesRequest.h:91
Aws::RAM::Model::ListResourcesRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: ListResourcesRequest.h:86
Aws::RAM::Model::ListResourcesRequest::WithNextToken
ListResourcesRequest & WithNextToken(Aws::String &&value)
Definition: ListResourcesRequest.h:403
Aws::RAM::Model::ListResourcesRequest::SetResourceShareArns
void SetResourceShareArns(const Aws::Vector< Aws::String > &value)
Definition: ListResourcesRequest.h:337
AWSVector.h
Aws::RAM::Model::ListResourcesRequest::WithMaxResults
ListResourcesRequest & WithMaxResults(int value)
Definition: ListResourcesRequest.h:437
Aws::RAM::Model::ListResourcesRequest
Definition: ListResourcesRequest.h:24
Aws::RAM::Model::ListResourcesRequest::WithResourceOwner
ListResourcesRequest & WithResourceOwner(const ResourceOwner &value)
Definition: ListResourcesRequest.h:60
Aws::RAM::Model::ListResourcesRequest::WithResourceArns
ListResourcesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
Definition: ListResourcesRequest.h:301
Aws::RAM::Model::ListResourcesRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: ListResourcesRequest.h:71
Aws::RAM::Model::ListResourcesRequest::WithPrincipal
ListResourcesRequest & WithPrincipal(const char *value)
Definition: ListResourcesRequest.h:106
Aws::RAM::Model::ListResourcesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListResourcesRequest.h:423
Aws::RAM::Model::ListResourcesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListResourcesRequest.h:430
Aws::RAM::Model::ListResourcesRequest::AddResourceArns
ListResourcesRequest & AddResourceArns(const char *value)
Definition: ListResourcesRequest.h:321
Aws::RAM::Model::ListResourcesRequest::WithResourceOwner
ListResourcesRequest & WithResourceOwner(ResourceOwner &&value)
Definition: ListResourcesRequest.h:65
Aws::RAM::Model::ListResourcesRequest::ResourceArnsHasBeenSet
bool ResourceArnsHasBeenSet() const
Definition: ListResourcesRequest.h:286
Aws::RAM::Model::ListResourcesRequest::AddResourceArns
ListResourcesRequest & AddResourceArns(Aws::String &&value)
Definition: ListResourcesRequest.h:316
Aws::RAM::Model::ListResourcesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListResourcesRequest.h:388
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::ResourceOwner
ResourceOwner
Definition: ResourceOwner.h:17
Aws::RAM::Model::ListResourcesRequest::WithPrincipal
ListResourcesRequest & WithPrincipal(const Aws::String &value)
Definition: ListResourcesRequest.h:96
Aws::RAM::Model::ListResourcesRequest::WithNextToken
ListResourcesRequest & WithNextToken(const Aws::String &value)
Definition: ListResourcesRequest.h:398
Aws::RAM::Model::ListResourcesRequest::SetResourceOwner
void SetResourceOwner(ResourceOwner &&value)
Definition: ListResourcesRequest.h:55
Aws::RAM::Model::ListResourcesRequest::WithResourceShareArns
ListResourcesRequest & WithResourceShareArns(const Aws::Vector< Aws::String > &value)
Definition: ListResourcesRequest.h:347
Aws::RAM::Model::ListResourcesRequest::SetResourceType
void SetResourceType(const char *value)
Definition: ListResourcesRequest.h:212
Aws::RAM::Model::ListResourcesRequest::WithResourceType
ListResourcesRequest & WithResourceType(const char *value)
Definition: ListResourcesRequest.h:275
Aws::RAM::Model::ListResourcesRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::ListResourcesRequest::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ListResourcesRequest.h:191
Aws::RAM::Model::ListResourcesRequest::ListResourcesRequest
ListResourcesRequest()
Aws::RAM::Model::ListResourcesRequest::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ListResourcesRequest.h:170
Aws::RAM::Model::ListResourcesRequest::SetResourceArns
void SetResourceArns(const Aws::Vector< Aws::String > &value)
Definition: ListResourcesRequest.h:291
Aws::RAM::Model::ListResourcesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListResourcesRequest.h:378
Aws::RAM::Model::ListResourcesRequest::WithResourceType
ListResourcesRequest & WithResourceType(const Aws::String &value)
Definition: ListResourcesRequest.h:233
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::ListResourcesRequest::GetResourceType
const Aws::String & GetResourceType() const
Definition: ListResourcesRequest.h:128
Aws::RAM::Model::ListResourcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListResourcesRequest.h:32
Aws::RAM::Model::ListResourcesRequest::AddResourceArns
ListResourcesRequest & AddResourceArns(const Aws::String &value)
Definition: ListResourcesRequest.h:311
Aws::RAM::Model::ListResourcesRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ListResourcesRequest.h:149
Aws::RAM::Model::ListResourcesRequest::GetResourceOwner
const ResourceOwner & GetResourceOwner() const
Definition: ListResourcesRequest.h:40
Aws::RAM::Model::ListResourcesRequest::AddResourceShareArns
ListResourcesRequest & AddResourceShareArns(Aws::String &&value)
Definition: ListResourcesRequest.h:362
Aws::RAM::Model::ListResourcesRequest::WithNextToken
ListResourcesRequest & WithNextToken(const char *value)
Definition: ListResourcesRequest.h:408
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::ListResourcesRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: ListResourcesRequest.h:81
ResourceOwner.h
Aws::RAM::Model::ListResourcesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListResourcesRequest.h:373
Aws::RAM::Model::ListResourcesRequest::GetResourceShareArns
const Aws::Vector< Aws::String > & GetResourceShareArns() const
Definition: ListResourcesRequest.h:327
Aws::RAM::Model::ListResourcesRequest::ResourceOwnerHasBeenSet
bool ResourceOwnerHasBeenSet() const
Definition: ListResourcesRequest.h:45
Aws::RAM::Model::ListResourcesRequest::WithPrincipal
ListResourcesRequest & WithPrincipal(Aws::String &&value)
Definition: ListResourcesRequest.h:101
Aws::RAM::Model::ListResourcesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListResourcesRequest.h:416
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17