AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetResourceSharesRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ram/model/ResourceShareStatus.h>
11#include <aws/ram/model/ResourceOwner.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ram/model/TagFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RAM
19{
20namespace 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 "GetResourceShares"; }
35
36 AWS_RAM_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const{ return m_resourceShareArns; }
47 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
48 inline void SetResourceShareArns(const Aws::Vector<Aws::String>& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; }
49 inline void SetResourceShareArns(Aws::Vector<Aws::String>&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); }
52 inline GetResourceSharesRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
53 inline GetResourceSharesRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; }
54 inline GetResourceSharesRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
56
58
62 inline const ResourceShareStatus& GetResourceShareStatus() const{ return m_resourceShareStatus; }
63 inline bool ResourceShareStatusHasBeenSet() const { return m_resourceShareStatusHasBeenSet; }
64 inline void SetResourceShareStatus(const ResourceShareStatus& value) { m_resourceShareStatusHasBeenSet = true; m_resourceShareStatus = value; }
65 inline void SetResourceShareStatus(ResourceShareStatus&& value) { m_resourceShareStatusHasBeenSet = true; m_resourceShareStatus = std::move(value); }
69
71
78 inline const ResourceOwner& GetResourceOwner() const{ return m_resourceOwner; }
79 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
80 inline void SetResourceOwner(const ResourceOwner& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
81 inline void SetResourceOwner(ResourceOwner&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
82 inline GetResourceSharesRequest& WithResourceOwner(const ResourceOwner& value) { SetResourceOwner(value); return *this;}
83 inline GetResourceSharesRequest& WithResourceOwner(ResourceOwner&& value) { SetResourceOwner(std::move(value)); return *this;}
85
87
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline GetResourceSharesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline GetResourceSharesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline GetResourceSharesRequest& WithName(const char* value) { SetName(value); return *this;}
100
102
106 inline const Aws::Vector<TagFilter>& GetTagFilters() const{ return m_tagFilters; }
107 inline bool TagFiltersHasBeenSet() const { return m_tagFiltersHasBeenSet; }
108 inline void SetTagFilters(const Aws::Vector<TagFilter>& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = value; }
109 inline void SetTagFilters(Aws::Vector<TagFilter>&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = std::move(value); }
111 inline GetResourceSharesRequest& WithTagFilters(Aws::Vector<TagFilter>&& value) { SetTagFilters(std::move(value)); return *this;}
112 inline GetResourceSharesRequest& AddTagFilters(const TagFilter& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(value); return *this; }
113 inline GetResourceSharesRequest& AddTagFilters(TagFilter&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(std::move(value)); return *this; }
115
117
124 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
127 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
129 inline GetResourceSharesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 inline GetResourceSharesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
131 inline GetResourceSharesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
133
135
146 inline int GetMaxResults() const{ return m_maxResults; }
147 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
148 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
149 inline GetResourceSharesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
151
153
159 inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
160 inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
161 inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
162 inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
163 inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
164 inline GetResourceSharesRequest& WithPermissionArn(const Aws::String& value) { SetPermissionArn(value); return *this;}
165 inline GetResourceSharesRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
166 inline GetResourceSharesRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
168
170
174 inline int GetPermissionVersion() const{ return m_permissionVersion; }
175 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
176 inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
177 inline GetResourceSharesRequest& WithPermissionVersion(int value) { SetPermissionVersion(value); return *this;}
179 private:
180
181 Aws::Vector<Aws::String> m_resourceShareArns;
182 bool m_resourceShareArnsHasBeenSet = false;
183
184 ResourceShareStatus m_resourceShareStatus;
185 bool m_resourceShareStatusHasBeenSet = false;
186
187 ResourceOwner m_resourceOwner;
188 bool m_resourceOwnerHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::Vector<TagFilter> m_tagFilters;
194 bool m_tagFiltersHasBeenSet = false;
195
196 Aws::String m_nextToken;
197 bool m_nextTokenHasBeenSet = false;
198
199 int m_maxResults;
200 bool m_maxResultsHasBeenSet = false;
201
202 Aws::String m_permissionArn;
203 bool m_permissionArnHasBeenSet = false;
204
205 int m_permissionVersion;
206 bool m_permissionVersionHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace RAM
211} // namespace Aws
GetResourceSharesRequest & AddResourceShareArns(const char *value)
void SetResourceShareArns(Aws::Vector< Aws::String > &&value)
GetResourceSharesRequest & WithNextToken(Aws::String &&value)
void SetResourceShareArns(const Aws::Vector< Aws::String > &value)
GetResourceSharesRequest & WithPermissionArn(const Aws::String &value)
GetResourceSharesRequest & AddResourceShareArns(const Aws::String &value)
GetResourceSharesRequest & AddResourceShareArns(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetResourceSharesRequest & WithMaxResults(int value)
void SetTagFilters(const Aws::Vector< TagFilter > &value)
GetResourceSharesRequest & WithPermissionArn(Aws::String &&value)
GetResourceSharesRequest & WithResourceOwner(ResourceOwner &&value)
const ResourceShareStatus & GetResourceShareStatus() const
GetResourceSharesRequest & WithName(const char *value)
GetResourceSharesRequest & WithResourceShareStatus(ResourceShareStatus &&value)
void SetResourceShareStatus(ResourceShareStatus &&value)
GetResourceSharesRequest & WithNextToken(const char *value)
GetResourceSharesRequest & WithResourceShareStatus(const ResourceShareStatus &value)
const Aws::Vector< Aws::String > & GetResourceShareArns() const
GetResourceSharesRequest & WithPermissionArn(const char *value)
GetResourceSharesRequest & WithPermissionVersion(int value)
GetResourceSharesRequest & AddTagFilters(const TagFilter &value)
GetResourceSharesRequest & AddTagFilters(TagFilter &&value)
GetResourceSharesRequest & WithName(const Aws::String &value)
GetResourceSharesRequest & WithNextToken(const Aws::String &value)
GetResourceSharesRequest & WithResourceOwner(const ResourceOwner &value)
GetResourceSharesRequest & WithTagFilters(Aws::Vector< TagFilter > &&value)
GetResourceSharesRequest & WithResourceShareArns(const Aws::Vector< Aws::String > &value)
void SetResourceOwner(const ResourceOwner &value)
AWS_RAM_API Aws::String SerializePayload() const override
GetResourceSharesRequest & WithTagFilters(const Aws::Vector< TagFilter > &value)
GetResourceSharesRequest & WithName(Aws::String &&value)
void SetResourceShareStatus(const ResourceShareStatus &value)
const Aws::Vector< TagFilter > & GetTagFilters() const
GetResourceSharesRequest & WithResourceShareArns(Aws::Vector< Aws::String > &&value)
void SetTagFilters(Aws::Vector< TagFilter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector