AWS SDK for C++  1.9.68
AWS SDK for C++
DescribeVpcEndpointServicePermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
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 "DescribeVpcEndpointServicePermissions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeVpcEndpointServicePermissionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
78 
82  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
83 
87  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
88 
92  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
93 
97  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
98 
102  inline DescribeVpcEndpointServicePermissionsRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
103 
107  inline DescribeVpcEndpointServicePermissionsRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
108 
112  inline DescribeVpcEndpointServicePermissionsRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
113 
114 
121  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
122 
129  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
130 
137  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
138 
145  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
146 
153  inline DescribeVpcEndpointServicePermissionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
154 
161  inline DescribeVpcEndpointServicePermissionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
162 
169  inline DescribeVpcEndpointServicePermissionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
170 
177  inline DescribeVpcEndpointServicePermissionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
178 
179 
187  inline int GetMaxResults() const{ return m_maxResults; }
188 
196  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
197 
205  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
206 
214  inline DescribeVpcEndpointServicePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
215 
216 
220  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
221 
225  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
226 
230  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
231 
235  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
236 
240  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
241 
245  inline DescribeVpcEndpointServicePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
246 
250  inline DescribeVpcEndpointServicePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
251 
255  inline DescribeVpcEndpointServicePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
256 
257  private:
258 
259  bool m_dryRun;
260  bool m_dryRunHasBeenSet;
261 
262  Aws::String m_serviceId;
263  bool m_serviceIdHasBeenSet;
264 
265  Aws::Vector<Filter> m_filters;
266  bool m_filtersHasBeenSet;
267 
268  int m_maxResults;
269  bool m_maxResultsHasBeenSet;
270 
271  Aws::String m_nextToken;
272  bool m_nextTokenHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace EC2
277 } // namespace Aws
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:235
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:196
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithServiceId
DescribeVpcEndpointServicePermissionsRequest & WithServiceId(const char *value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:112
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:230
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:225
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:82
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::DescribeVpcEndpointServicePermissionsRequest
DescribeVpcEndpointServicePermissionsRequest()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:137
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithNextToken
DescribeVpcEndpointServicePermissionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:245
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpcEndpointServicePermissionsRequest.h:32
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:220
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:63
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithServiceId
DescribeVpcEndpointServicePermissionsRequest & WithServiceId(Aws::String &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:107
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:121
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:92
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:55
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithMaxResults
DescribeVpcEndpointServicePermissionsRequest & WithMaxResults(int value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:214
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::AddFilters
DescribeVpcEndpointServicePermissionsRequest & AddFilters(Filter &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:177
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:47
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:129
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithDryRun
DescribeVpcEndpointServicePermissionsRequest & WithDryRun(bool value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:71
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:87
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(const char *value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:97
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:240
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest
Definition: DescribeVpcEndpointServicePermissionsRequest.h:24
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithNextToken
DescribeVpcEndpointServicePermissionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:250
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithNextToken
DescribeVpcEndpointServicePermissionsRequest & WithNextToken(const char *value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:255
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::AddFilters
DescribeVpcEndpointServicePermissionsRequest & AddFilters(const Filter &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:169
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:145
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithServiceId
DescribeVpcEndpointServicePermissionsRequest & WithServiceId(const Aws::String &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:102
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: DescribeVpcEndpointServicePermissionsRequest.h:77
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:205
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithFilters
DescribeVpcEndpointServicePermissionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:161
Aws::EC2::Model::DescribeVpcEndpointServicePermissionsRequest::WithFilters
DescribeVpcEndpointServicePermissionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcEndpointServicePermissionsRequest.h:153