AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVpnGatewaysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
26 public:
27 AWS_EC2_API DescribeVpnGatewaysRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeVpnGateways"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
65 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
66 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
67 template <typename FiltersT = Aws::Vector<Filter>>
68 void SetFilters(FiltersT&& value) {
69 m_filtersHasBeenSet = true;
70 m_filters = std::forward<FiltersT>(value);
71 }
72 template <typename FiltersT = Aws::Vector<Filter>>
74 SetFilters(std::forward<FiltersT>(value));
75 return *this;
76 }
77 template <typename FiltersT = Filter>
79 m_filtersHasBeenSet = true;
80 m_filters.emplace_back(std::forward<FiltersT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Vector<Aws::String>& GetVpnGatewayIds() const { return m_vpnGatewayIds; }
91 inline bool VpnGatewayIdsHasBeenSet() const { return m_vpnGatewayIdsHasBeenSet; }
92 template <typename VpnGatewayIdsT = Aws::Vector<Aws::String>>
93 void SetVpnGatewayIds(VpnGatewayIdsT&& value) {
94 m_vpnGatewayIdsHasBeenSet = true;
95 m_vpnGatewayIds = std::forward<VpnGatewayIdsT>(value);
96 }
97 template <typename VpnGatewayIdsT = Aws::Vector<Aws::String>>
99 SetVpnGatewayIds(std::forward<VpnGatewayIdsT>(value));
100 return *this;
101 }
102 template <typename VpnGatewayIdsT = Aws::String>
104 m_vpnGatewayIdsHasBeenSet = true;
105 m_vpnGatewayIds.emplace_back(std::forward<VpnGatewayIdsT>(value));
106 return *this;
107 }
109
111
117 inline bool GetDryRun() const { return m_dryRun; }
118 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
119 inline void SetDryRun(bool value) {
120 m_dryRunHasBeenSet = true;
121 m_dryRun = value;
122 }
124 SetDryRun(value);
125 return *this;
126 }
128 private:
129 Aws::Vector<Filter> m_filters;
130
131 Aws::Vector<Aws::String> m_vpnGatewayIds;
132
133 bool m_dryRun{false};
134 bool m_filtersHasBeenSet = false;
135 bool m_vpnGatewayIdsHasBeenSet = false;
136 bool m_dryRunHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace EC2
141} // 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