AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListResourcesRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/model/ResourceOwner.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ram/model/ResourceRegionScopeFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RAM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_RAM_API ListResourcesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListResources"; }
34
35 AWS_RAM_API Aws::String SerializePayload() const override;
36
37
39
46 inline const ResourceOwner& GetResourceOwner() const{ return m_resourceOwner; }
47 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
48 inline void SetResourceOwner(const ResourceOwner& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
49 inline void SetResourceOwner(ResourceOwner&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
50 inline ListResourcesRequest& WithResourceOwner(const ResourceOwner& value) { SetResourceOwner(value); return *this;}
51 inline ListResourcesRequest& WithResourceOwner(ResourceOwner&& value) { SetResourceOwner(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
64 inline ListResourcesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
65 inline ListResourcesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
66 inline ListResourcesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
68
70
75 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
76 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
77 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
78 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
79 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
80 inline ListResourcesRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
81 inline ListResourcesRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
82 inline ListResourcesRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
84
86
92 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
93 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
94 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
95 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
97 inline ListResourcesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
98 inline ListResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
99 inline ListResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
100 inline ListResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
102
104
110 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const{ return m_resourceShareArns; }
111 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
112 inline void SetResourceShareArns(const Aws::Vector<Aws::String>& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; }
113 inline void SetResourceShareArns(Aws::Vector<Aws::String>&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); }
116 inline ListResourcesRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
117 inline ListResourcesRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; }
118 inline ListResourcesRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
120
122
129 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
130 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
131 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
132 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
133 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
134 inline ListResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
135 inline ListResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
136 inline ListResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
138
140
151 inline int GetMaxResults() const{ return m_maxResults; }
152 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
153 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
154 inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
156
158
167 inline const ResourceRegionScopeFilter& GetResourceRegionScope() const{ return m_resourceRegionScope; }
168 inline bool ResourceRegionScopeHasBeenSet() const { return m_resourceRegionScopeHasBeenSet; }
169 inline void SetResourceRegionScope(const ResourceRegionScopeFilter& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = value; }
170 inline void SetResourceRegionScope(ResourceRegionScopeFilter&& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = std::move(value); }
174 private:
175
176 ResourceOwner m_resourceOwner;
177 bool m_resourceOwnerHasBeenSet = false;
178
179 Aws::String m_principal;
180 bool m_principalHasBeenSet = false;
181
182 Aws::String m_resourceType;
183 bool m_resourceTypeHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_resourceArns;
186 bool m_resourceArnsHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_resourceShareArns;
189 bool m_resourceShareArnsHasBeenSet = false;
190
191 Aws::String m_nextToken;
192 bool m_nextTokenHasBeenSet = false;
193
194 int m_maxResults;
195 bool m_maxResultsHasBeenSet = false;
196
197 ResourceRegionScopeFilter m_resourceRegionScope;
198 bool m_resourceRegionScopeHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace RAM
203} // namespace Aws
ListResourcesRequest & WithResourceType(const Aws::String &value)
ListResourcesRequest & WithResourceShareArns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetResourceShareArns() const
void SetResourceOwner(ResourceOwner &&value)
ListResourcesRequest & WithResourceShareArns(Aws::Vector< Aws::String > &&value)
ListResourcesRequest & AddResourceShareArns(const Aws::String &value)
ListResourcesRequest & WithMaxResults(int value)
AWS_RAM_API Aws::String SerializePayload() const override
ListResourcesRequest & WithResourceRegionScope(const ResourceRegionScopeFilter &value)
void SetResourceShareArns(Aws::Vector< Aws::String > &&value)
void SetResourceRegionScope(ResourceRegionScopeFilter &&value)
void SetResourceShareArns(const Aws::Vector< Aws::String > &value)
const ResourceRegionScopeFilter & GetResourceRegionScope() const
ListResourcesRequest & WithNextToken(Aws::String &&value)
ListResourcesRequest & WithResourceRegionScope(ResourceRegionScopeFilter &&value)
ListResourcesRequest & WithResourceType(const char *value)
void SetResourceRegionScope(const ResourceRegionScopeFilter &value)
ListResourcesRequest & WithPrincipal(Aws::String &&value)
const Aws::String & GetResourceType() const
ListResourcesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
ListResourcesRequest & WithNextToken(const char *value)
ListResourcesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetResourceArns() const
ListResourcesRequest & WithResourceOwner(const ResourceOwner &value)
void SetResourceType(const Aws::String &value)
void SetResourceOwner(const ResourceOwner &value)
ListResourcesRequest & WithPrincipal(const char *value)
ListResourcesRequest & AddResourceArns(const Aws::String &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
ListResourcesRequest & WithNextToken(const Aws::String &value)
ListResourcesRequest & AddResourceArns(Aws::String &&value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
ListResourcesRequest & AddResourceShareArns(Aws::String &&value)
const ResourceOwner & GetResourceOwner() const
ListResourcesRequest & WithResourceOwner(ResourceOwner &&value)
void SetNextToken(const Aws::String &value)
void SetPrincipal(const Aws::String &value)
const Aws::String & GetPrincipal() const
ListResourcesRequest & AddResourceArns(const char *value)
ListResourcesRequest & WithResourceType(Aws::String &&value)
ListResourcesRequest & WithPrincipal(const Aws::String &value)
ListResourcesRequest & AddResourceShareArns(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector