AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeVpcPeeringConnectionsRequest.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 "DescribeVpcPeeringConnections"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
70  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
71 
101  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 
132  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
133 
163  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
164 
194  inline DescribeVpcPeeringConnectionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
195 
225  inline DescribeVpcPeeringConnectionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
226 
256  inline DescribeVpcPeeringConnectionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
257 
287  inline DescribeVpcPeeringConnectionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
288 
289 
296  inline bool GetDryRun() const{ return m_dryRun; }
297 
304  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
305 
312  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
313 
320  inline DescribeVpcPeeringConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
321 
322 
327  inline const Aws::Vector<Aws::String>& GetVpcPeeringConnectionIds() const{ return m_vpcPeeringConnectionIds; }
328 
333  inline bool VpcPeeringConnectionIdsHasBeenSet() const { return m_vpcPeeringConnectionIdsHasBeenSet; }
334 
339  inline void SetVpcPeeringConnectionIds(const Aws::Vector<Aws::String>& value) { m_vpcPeeringConnectionIdsHasBeenSet = true; m_vpcPeeringConnectionIds = value; }
340 
345  inline void SetVpcPeeringConnectionIds(Aws::Vector<Aws::String>&& value) { m_vpcPeeringConnectionIdsHasBeenSet = true; m_vpcPeeringConnectionIds = std::move(value); }
346 
351  inline DescribeVpcPeeringConnectionsRequest& WithVpcPeeringConnectionIds(const Aws::Vector<Aws::String>& value) { SetVpcPeeringConnectionIds(value); return *this;}
352 
357  inline DescribeVpcPeeringConnectionsRequest& WithVpcPeeringConnectionIds(Aws::Vector<Aws::String>&& value) { SetVpcPeeringConnectionIds(std::move(value)); return *this;}
358 
363  inline DescribeVpcPeeringConnectionsRequest& AddVpcPeeringConnectionIds(const Aws::String& value) { m_vpcPeeringConnectionIdsHasBeenSet = true; m_vpcPeeringConnectionIds.push_back(value); return *this; }
364 
369  inline DescribeVpcPeeringConnectionsRequest& AddVpcPeeringConnectionIds(Aws::String&& value) { m_vpcPeeringConnectionIdsHasBeenSet = true; m_vpcPeeringConnectionIds.push_back(std::move(value)); return *this; }
370 
375  inline DescribeVpcPeeringConnectionsRequest& AddVpcPeeringConnectionIds(const char* value) { m_vpcPeeringConnectionIdsHasBeenSet = true; m_vpcPeeringConnectionIds.push_back(value); return *this; }
376 
377 
381  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
382 
386  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
387 
391  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
392 
396  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
397 
401  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
402 
406  inline DescribeVpcPeeringConnectionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
407 
411  inline DescribeVpcPeeringConnectionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
412 
416  inline DescribeVpcPeeringConnectionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
417 
418 
424  inline int GetMaxResults() const{ return m_maxResults; }
425 
431  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
432 
438  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
439 
445  inline DescribeVpcPeeringConnectionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
446 
447  private:
448 
449  Aws::Vector<Filter> m_filters;
450  bool m_filtersHasBeenSet;
451 
452  bool m_dryRun;
453  bool m_dryRunHasBeenSet;
454 
455  Aws::Vector<Aws::String> m_vpcPeeringConnectionIds;
456  bool m_vpcPeeringConnectionIdsHasBeenSet;
457 
458  Aws::String m_nextToken;
459  bool m_nextTokenHasBeenSet;
460 
461  int m_maxResults;
462  bool m_maxResultsHasBeenSet;
463  };
464 
465 } // namespace Model
466 } // namespace EC2
467 } // namespace Aws
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVpcPeeringConnectionsRequest.h:381
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetVpcPeeringConnectionIds
const Aws::Vector< Aws::String > & GetVpcPeeringConnectionIds() const
Definition: DescribeVpcPeeringConnectionsRequest.h:327
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpcPeeringConnectionsRequest.h:312
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVpcPeeringConnectionsRequest.h:101
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVpcPeeringConnectionsRequest.h:401
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithDryRun
DescribeVpcPeeringConnectionsRequest & WithDryRun(bool value)
Definition: DescribeVpcPeeringConnectionsRequest.h:320
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::AddFilters
DescribeVpcPeeringConnectionsRequest & AddFilters(Filter &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:287
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:391
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::DescribeVpcPeeringConnectionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeVpcPeeringConnectionsRequest.h:438
Filter.h
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeVpcPeeringConnectionsRequest.h:431
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVpcPeeringConnectionsRequest.h:70
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpcPeeringConnectionsRequest.h:32
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetVpcPeeringConnectionIds
void SetVpcPeeringConnectionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:339
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithVpcPeeringConnectionIds
DescribeVpcPeeringConnectionsRequest & WithVpcPeeringConnectionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:357
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpcPeeringConnectionsRequest.h:304
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::AddVpcPeeringConnectionIds
DescribeVpcPeeringConnectionsRequest & AddVpcPeeringConnectionIds(Aws::String &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:369
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:163
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithNextToken
DescribeVpcPeeringConnectionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:411
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:396
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeVpcPeeringConnectionsRequest.h:424
AWSString.h
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest
Definition: DescribeVpcPeeringConnectionsRequest.h:24
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeVpcPeeringConnectionsRequest.h:386
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetVpcPeeringConnectionIds
void SetVpcPeeringConnectionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:345
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpcPeeringConnectionsRequest.h:296
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithFilters
DescribeVpcPeeringConnectionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:194
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::AddFilters
DescribeVpcPeeringConnectionsRequest & AddFilters(const Filter &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:256
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::AddVpcPeeringConnectionIds
DescribeVpcPeeringConnectionsRequest & AddVpcPeeringConnectionIds(const Aws::String &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:363
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::VpcPeeringConnectionIdsHasBeenSet
bool VpcPeeringConnectionIdsHasBeenSet() const
Definition: DescribeVpcPeeringConnectionsRequest.h:333
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithNextToken
DescribeVpcPeeringConnectionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:406
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithMaxResults
DescribeVpcPeeringConnectionsRequest & WithMaxResults(int value)
Definition: DescribeVpcPeeringConnectionsRequest.h:445
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithVpcPeeringConnectionIds
DescribeVpcPeeringConnectionsRequest & WithVpcPeeringConnectionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpcPeeringConnectionsRequest.h:351
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::DescribeVpcPeeringConnectionsRequest
DescribeVpcPeeringConnectionsRequest()
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithFilters
DescribeVpcPeeringConnectionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpcPeeringConnectionsRequest.h:225
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::AddVpcPeeringConnectionIds
DescribeVpcPeeringConnectionsRequest & AddVpcPeeringConnectionIds(const char *value)
Definition: DescribeVpcPeeringConnectionsRequest.h:375
Aws::EC2::Model::DescribeVpcPeeringConnectionsRequest::WithNextToken
DescribeVpcPeeringConnectionsRequest & WithNextToken(const char *value)
Definition: DescribeVpcPeeringConnectionsRequest.h:416