AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeVpcEndpointsRequest.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 
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 "DescribeVpcEndpoints"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
51  inline bool GetDryRun() const{ return m_dryRun; }
52 
59  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
60 
67  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
68 
75  inline DescribeVpcEndpointsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
76 
77 
81  inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const{ return m_vpcEndpointIds; }
82 
86  inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
87 
91  inline void SetVpcEndpointIds(const Aws::Vector<Aws::String>& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; }
92 
96  inline void SetVpcEndpointIds(Aws::Vector<Aws::String>&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); }
97 
101  inline DescribeVpcEndpointsRequest& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
102 
106  inline DescribeVpcEndpointsRequest& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
107 
111  inline DescribeVpcEndpointsRequest& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
112 
116  inline DescribeVpcEndpointsRequest& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
117 
121  inline DescribeVpcEndpointsRequest& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
122 
123 
144  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
145 
166  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
167 
188  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
189 
210  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
211 
232  inline DescribeVpcEndpointsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
233 
254  inline DescribeVpcEndpointsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
255 
276  inline DescribeVpcEndpointsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
277 
298  inline DescribeVpcEndpointsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
299 
300 
307  inline int GetMaxResults() const{ return m_maxResults; }
308 
315  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
316 
323  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
324 
331  inline DescribeVpcEndpointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
332 
333 
338  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
339 
344  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
345 
350  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
351 
356  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
357 
362  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
363 
368  inline DescribeVpcEndpointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
369 
374  inline DescribeVpcEndpointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
375 
380  inline DescribeVpcEndpointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
381 
382  private:
383 
384  bool m_dryRun;
385  bool m_dryRunHasBeenSet;
386 
387  Aws::Vector<Aws::String> m_vpcEndpointIds;
388  bool m_vpcEndpointIdsHasBeenSet;
389 
390  Aws::Vector<Filter> m_filters;
391  bool m_filtersHasBeenSet;
392 
393  int m_maxResults;
394  bool m_maxResultsHasBeenSet;
395 
396  Aws::String m_nextToken;
397  bool m_nextTokenHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace EC2
402 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVpcEndpointsRequest.h:323
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVpcEndpointsRequest.h:356
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetVpcEndpointIds
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
Definition: DescribeVpcEndpointsRequest.h:81
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcEndpointsRequest.h:96
Aws::EC2::Model::DescribeVpcEndpointsRequest::AddVpcEndpointIds
DescribeVpcEndpointsRequest & AddVpcEndpointIds(const Aws::String &value)
Definition: DescribeVpcEndpointsRequest.h:111
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcEndpointsRequest.h:91
Aws::EC2::Model::DescribeVpcEndpointsRequest::AddVpcEndpointIds
DescribeVpcEndpointsRequest & AddVpcEndpointIds(Aws::String &&value)
Definition: DescribeVpcEndpointsRequest.h:116
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpcEndpointsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVpcEndpointsRequest.h:166
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpcEndpointsRequest.h:36
Filter.h
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVpcEndpointsRequest.h:362
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpcEndpointsRequest.h:67
Aws::EC2::Model::DescribeVpcEndpointsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeVpcEndpointsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVpcEndpointsRequest.h:344
Aws::EC2::Model::DescribeVpcEndpointsRequest::VpcEndpointIdsHasBeenSet
bool VpcEndpointIdsHasBeenSet() const
Definition: DescribeVpcEndpointsRequest.h:86
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithVpcEndpointIds
DescribeVpcEndpointsRequest & WithVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcEndpointsRequest.h:106
Aws::EC2::Model::DescribeVpcEndpointsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVpcEndpointsRequest.h:315
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithMaxResults
DescribeVpcEndpointsRequest & WithMaxResults(int value)
Definition: DescribeVpcEndpointsRequest.h:331
Aws::EC2::Model::DescribeVpcEndpointsRequest::AddFilters
DescribeVpcEndpointsRequest & AddFilters(Filter &&value)
Definition: DescribeVpcEndpointsRequest.h:298
EC2Request.h
Aws::EC2::Model::DescribeVpcEndpointsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVpcEndpointsRequest.h:144
AWSString.h
Aws::EC2::Model::DescribeVpcEndpointsRequest::DescribeVpcEndpointsRequest
DescribeVpcEndpointsRequest()
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithNextToken
DescribeVpcEndpointsRequest & WithNextToken(const char *value)
Definition: DescribeVpcEndpointsRequest.h:380
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcEndpointsRequest.h:188
Aws::EC2::Model::DescribeVpcEndpointsRequest::AddFilters
DescribeVpcEndpointsRequest & AddFilters(const Filter &value)
Definition: DescribeVpcEndpointsRequest.h:276
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcEndpointsRequest.h:210
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithDryRun
DescribeVpcEndpointsRequest & WithDryRun(bool value)
Definition: DescribeVpcEndpointsRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVpcEndpointsRequest.h:338
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVpcEndpointsRequest.h:307
Aws::EC2::Model::DescribeVpcEndpointsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpcEndpointsRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithNextToken
DescribeVpcEndpointsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVpcEndpointsRequest.h:374
Aws::EC2::Model::DescribeVpcEndpointsRequest::AddVpcEndpointIds
DescribeVpcEndpointsRequest & AddVpcEndpointIds(const char *value)
Definition: DescribeVpcEndpointsRequest.h:121
Aws::EC2::Model::DescribeVpcEndpointsRequest
Definition: DescribeVpcEndpointsRequest.h:28
Aws::EC2::Model::DescribeVpcEndpointsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVpcEndpointsRequest.h:350
Aws::EC2::Model::DescribeVpcEndpointsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpcEndpointsRequest.h:51
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithFilters
DescribeVpcEndpointsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcEndpointsRequest.h:254
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithVpcEndpointIds
DescribeVpcEndpointsRequest & WithVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcEndpointsRequest.h:101
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithFilters
DescribeVpcEndpointsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcEndpointsRequest.h:232
Aws::EC2::Model::DescribeVpcEndpointsRequest::WithNextToken
DescribeVpcEndpointsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVpcEndpointsRequest.h:368