AWS SDK for C++  1.9.68
AWS SDK for C++
DescribeCustomerGatewaysRequest.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 "DescribeCustomerGateways"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
49  inline const Aws::Vector<Aws::String>& GetCustomerGatewayIds() const{ return m_customerGatewayIds; }
50 
55  inline bool CustomerGatewayIdsHasBeenSet() const { return m_customerGatewayIdsHasBeenSet; }
56 
61  inline void SetCustomerGatewayIds(const Aws::Vector<Aws::String>& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds = value; }
62 
67  inline void SetCustomerGatewayIds(Aws::Vector<Aws::String>&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds = std::move(value); }
68 
73  inline DescribeCustomerGatewaysRequest& WithCustomerGatewayIds(const Aws::Vector<Aws::String>& value) { SetCustomerGatewayIds(value); return *this;}
74 
79  inline DescribeCustomerGatewaysRequest& WithCustomerGatewayIds(Aws::Vector<Aws::String>&& value) { SetCustomerGatewayIds(std::move(value)); return *this;}
80 
85  inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(const Aws::String& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(value); return *this; }
86 
91  inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(Aws::String&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(std::move(value)); return *this; }
92 
97  inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(const char* value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(value); return *this; }
98 
99 
119  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
120 
140  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
141 
161  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
162 
182  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
183 
203  inline DescribeCustomerGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
204 
224  inline DescribeCustomerGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
225 
245  inline DescribeCustomerGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
246 
266  inline DescribeCustomerGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
267 
268 
275  inline bool GetDryRun() const{ return m_dryRun; }
276 
283  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
284 
291  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
292 
299  inline DescribeCustomerGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
300 
301  private:
302 
303  Aws::Vector<Aws::String> m_customerGatewayIds;
304  bool m_customerGatewayIdsHasBeenSet;
305 
306  Aws::Vector<Filter> m_filters;
307  bool m_filtersHasBeenSet;
308 
309  bool m_dryRun;
310  bool m_dryRunHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace EC2
315 } // namespace Aws
Aws::EC2::Model::DescribeCustomerGatewaysRequest::AddCustomerGatewayIds
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(const Aws::String &value)
Definition: DescribeCustomerGatewaysRequest.h:85
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeCustomerGatewaysRequest::WithDryRun
DescribeCustomerGatewaysRequest & WithDryRun(bool value)
Definition: DescribeCustomerGatewaysRequest.h:299
Aws::EC2::Model::DescribeCustomerGatewaysRequest::AddFilters
DescribeCustomerGatewaysRequest & AddFilters(const Filter &value)
Definition: DescribeCustomerGatewaysRequest.h:245
Aws::EC2::Model::DescribeCustomerGatewaysRequest::WithCustomerGatewayIds
DescribeCustomerGatewaysRequest & WithCustomerGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCustomerGatewaysRequest.h:73
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeCustomerGatewaysRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeCustomerGatewaysRequest.h:119
Aws::EC2::Model::DescribeCustomerGatewaysRequest::AddCustomerGatewayIds
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(const char *value)
Definition: DescribeCustomerGatewaysRequest.h:97
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeCustomerGatewaysRequest::WithFilters
DescribeCustomerGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCustomerGatewaysRequest.h:224
Aws::EC2::Model::DescribeCustomerGatewaysRequest::WithFilters
DescribeCustomerGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCustomerGatewaysRequest.h:203
Aws::EC2::Model::DescribeCustomerGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeCustomerGatewaysRequest.h:275
Aws::EC2::Model::DescribeCustomerGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeCustomerGatewaysRequest.h:36
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeCustomerGatewaysRequest.h:182
EC2Request.h
Aws::EC2::Model::DescribeCustomerGatewaysRequest::AddCustomerGatewayIds
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(Aws::String &&value)
Definition: DescribeCustomerGatewaysRequest.h:91
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SetCustomerGatewayIds
void SetCustomerGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCustomerGatewaysRequest.h:67
AWSString.h
Aws::EC2::Model::DescribeCustomerGatewaysRequest::WithCustomerGatewayIds
DescribeCustomerGatewaysRequest & WithCustomerGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCustomerGatewaysRequest.h:79
Aws::EC2::Model::DescribeCustomerGatewaysRequest::CustomerGatewayIdsHasBeenSet
bool CustomerGatewayIdsHasBeenSet() const
Definition: DescribeCustomerGatewaysRequest.h:55
Aws::EC2::Model::DescribeCustomerGatewaysRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeCustomerGatewaysRequest.h:140
Aws::EC2::Model::DescribeCustomerGatewaysRequest
Definition: DescribeCustomerGatewaysRequest.h:28
Aws::EC2::Model::DescribeCustomerGatewaysRequest::DescribeCustomerGatewaysRequest
DescribeCustomerGatewaysRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeCustomerGatewaysRequest.h:161
Aws::EC2::Model::DescribeCustomerGatewaysRequest::GetCustomerGatewayIds
const Aws::Vector< Aws::String > & GetCustomerGatewayIds() const
Definition: DescribeCustomerGatewaysRequest.h:49
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeCustomerGatewaysRequest.h:291
Aws::EC2::Model::DescribeCustomerGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeCustomerGatewaysRequest.h:283
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::DescribeCustomerGatewaysRequest::AddFilters
DescribeCustomerGatewaysRequest & AddFilters(Filter &&value)
Definition: DescribeCustomerGatewaysRequest.h:266
EC2_EXPORTS.h
Aws::EC2::Model::DescribeCustomerGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeCustomerGatewaysRequest::SetCustomerGatewayIds
void SetCustomerGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCustomerGatewaysRequest.h:61