AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeVpnGatewaysRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/Filter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_EC2_API DescribeVpnGatewaysRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
69 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 template<typename FiltersT = Aws::Vector<Filter>>
72 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
73 template<typename FiltersT = Aws::Vector<Filter>>
74 DescribeVpnGatewaysRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
75 template<typename FiltersT = Filter>
76 DescribeVpnGatewaysRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
78
80
84 inline const Aws::Vector<Aws::String>& GetVpnGatewayIds() const { return m_vpnGatewayIds; }
85 inline bool VpnGatewayIdsHasBeenSet() const { return m_vpnGatewayIdsHasBeenSet; }
86 template<typename VpnGatewayIdsT = Aws::Vector<Aws::String>>
87 void SetVpnGatewayIds(VpnGatewayIdsT&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds = std::forward<VpnGatewayIdsT>(value); }
88 template<typename VpnGatewayIdsT = Aws::Vector<Aws::String>>
89 DescribeVpnGatewaysRequest& WithVpnGatewayIds(VpnGatewayIdsT&& value) { SetVpnGatewayIds(std::forward<VpnGatewayIdsT>(value)); return *this;}
90 template<typename VpnGatewayIdsT = Aws::String>
91 DescribeVpnGatewaysRequest& AddVpnGatewayIds(VpnGatewayIdsT&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.emplace_back(std::forward<VpnGatewayIdsT>(value)); return *this; }
93
95
101 inline bool GetDryRun() const { return m_dryRun; }
102 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
103 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
104 inline DescribeVpnGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
106 private:
107
108 Aws::Vector<Filter> m_filters;
109 bool m_filtersHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_vpnGatewayIds;
112 bool m_vpnGatewayIdsHasBeenSet = false;
113
114 bool m_dryRun{false};
115 bool m_dryRunHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace EC2
120} // namespace Aws
DescribeVpnGatewaysRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetVpnGatewayIds() const
DescribeVpnGatewaysRequest & AddFilters(FiltersT &&value)
DescribeVpnGatewaysRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeVpnGatewaysRequest & WithVpnGatewayIds(VpnGatewayIdsT &&value)
AWS_EC2_API DescribeVpnGatewaysRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVpnGatewaysRequest & AddVpnGatewayIds(VpnGatewayIdsT &&value)
const Aws::Vector< Filter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector