AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeVpnGatewaysRequest.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>
10 #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 "DescribeVpnGateways"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
68  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
69 
93  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 
118  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
119 
143  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
144 
168  inline DescribeVpnGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
169 
193  inline DescribeVpnGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
194 
218  inline DescribeVpnGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
219 
243  inline DescribeVpnGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
244 
245 
250  inline const Aws::Vector<Aws::String>& GetVpnGatewayIds() const{ return m_vpnGatewayIds; }
251 
256  inline bool VpnGatewayIdsHasBeenSet() const { return m_vpnGatewayIdsHasBeenSet; }
257 
262  inline void SetVpnGatewayIds(const Aws::Vector<Aws::String>& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds = value; }
263 
268  inline void SetVpnGatewayIds(Aws::Vector<Aws::String>&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds = std::move(value); }
269 
274  inline DescribeVpnGatewaysRequest& WithVpnGatewayIds(const Aws::Vector<Aws::String>& value) { SetVpnGatewayIds(value); return *this;}
275 
280  inline DescribeVpnGatewaysRequest& WithVpnGatewayIds(Aws::Vector<Aws::String>&& value) { SetVpnGatewayIds(std::move(value)); return *this;}
281 
286  inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(const Aws::String& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(value); return *this; }
287 
292  inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(Aws::String&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(std::move(value)); return *this; }
293 
298  inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(const char* value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(value); return *this; }
299 
300 
307  inline bool GetDryRun() const{ return m_dryRun; }
308 
315  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
316 
323  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
324 
331  inline DescribeVpnGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
332 
333  private:
334 
335  Aws::Vector<Filter> m_filters;
336  bool m_filtersHasBeenSet;
337 
338  Aws::Vector<Aws::String> m_vpnGatewayIds;
339  bool m_vpnGatewayIdsHasBeenSet;
340 
341  bool m_dryRun;
342  bool m_dryRunHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeVpnGatewaysRequest
Definition: DescribeVpnGatewaysRequest.h:28
Aws::EC2::Model::DescribeVpnGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeVpnGatewaysRequest.h:323
Aws::EC2::Model::DescribeVpnGatewaysRequest::SetVpnGatewayIds
void SetVpnGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpnGatewaysRequest.h:268
Aws::EC2::Model::DescribeVpnGatewaysRequest::VpnGatewayIdsHasBeenSet
bool VpnGatewayIdsHasBeenSet() const
Definition: DescribeVpnGatewaysRequest.h:256
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::DescribeVpnGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeVpnGatewaysRequest.h:307
Aws::EC2::Model::DescribeVpnGatewaysRequest::WithFilters
DescribeVpnGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpnGatewaysRequest.h:168
Aws::EC2::Model::DescribeVpnGatewaysRequest::GetVpnGatewayIds
const Aws::Vector< Aws::String > & GetVpnGatewayIds() const
Definition: DescribeVpnGatewaysRequest.h:250
AWSVector.h
Aws::EC2::Model::DescribeVpnGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
Filter.h
Aws::EC2::Model::DescribeVpnGatewaysRequest::WithVpnGatewayIds
DescribeVpnGatewaysRequest & WithVpnGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpnGatewaysRequest.h:274
Aws::EC2::Model::DescribeVpnGatewaysRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpnGatewaysRequest.h:143
Aws::EC2::Model::DescribeVpnGatewaysRequest::AddFilters
DescribeVpnGatewaysRequest & AddFilters(const Filter &value)
Definition: DescribeVpnGatewaysRequest.h:218
Aws::EC2::Model::DescribeVpnGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeVpnGatewaysRequest.h:315
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeVpnGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVpnGatewaysRequest.h:36
Aws::EC2::Model::DescribeVpnGatewaysRequest::AddVpnGatewayIds
DescribeVpnGatewaysRequest & AddVpnGatewayIds(Aws::String &&value)
Definition: DescribeVpnGatewaysRequest.h:292
Aws::EC2::Model::DescribeVpnGatewaysRequest::SetVpnGatewayIds
void SetVpnGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVpnGatewaysRequest.h:262
Aws::EC2::Model::DescribeVpnGatewaysRequest::WithFilters
DescribeVpnGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeVpnGatewaysRequest.h:193
Aws::EC2::Model::DescribeVpnGatewaysRequest::AddVpnGatewayIds
DescribeVpnGatewaysRequest & AddVpnGatewayIds(const char *value)
Definition: DescribeVpnGatewaysRequest.h:298
Aws::EC2::Model::DescribeVpnGatewaysRequest::AddFilters
DescribeVpnGatewaysRequest & AddFilters(Filter &&value)
Definition: DescribeVpnGatewaysRequest.h:243
Aws::EC2::Model::DescribeVpnGatewaysRequest::WithVpnGatewayIds
DescribeVpnGatewaysRequest & WithVpnGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVpnGatewaysRequest.h:280
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpnGatewaysRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeVpnGatewaysRequest.h:118
Aws::EC2::Model::DescribeVpnGatewaysRequest::WithDryRun
DescribeVpnGatewaysRequest & WithDryRun(bool value)
Definition: DescribeVpnGatewaysRequest.h:331
Aws::EC2::Model::DescribeVpnGatewaysRequest::AddVpnGatewayIds
DescribeVpnGatewaysRequest & AddVpnGatewayIds(const Aws::String &value)
Definition: DescribeVpnGatewaysRequest.h:286
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVpnGatewaysRequest::DescribeVpnGatewaysRequest
DescribeVpnGatewaysRequest()
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeVpnGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpnGatewaysRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeVpnGatewaysRequest.h:93
Aws::EC2::Model::DescribeVpnGatewaysRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeVpnGatewaysRequest.h:68