AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVpnConnectionsRequest.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 DescribeVpnConnectionsRequest() = 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 "DescribeVpnConnections"; }
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
70 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
71 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
72 template <typename FiltersT = Aws::Vector<Filter>>
73 void SetFilters(FiltersT&& value) {
74 m_filtersHasBeenSet = true;
75 m_filters = std::forward<FiltersT>(value);
76 }
77 template <typename FiltersT = Aws::Vector<Filter>>
79 SetFilters(std::forward<FiltersT>(value));
80 return *this;
81 }
82 template <typename FiltersT = Filter>
84 m_filtersHasBeenSet = true;
85 m_filters.emplace_back(std::forward<FiltersT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Aws::String>& GetVpnConnectionIds() const { return m_vpnConnectionIds; }
96 inline bool VpnConnectionIdsHasBeenSet() const { return m_vpnConnectionIdsHasBeenSet; }
97 template <typename VpnConnectionIdsT = Aws::Vector<Aws::String>>
98 void SetVpnConnectionIds(VpnConnectionIdsT&& value) {
99 m_vpnConnectionIdsHasBeenSet = true;
100 m_vpnConnectionIds = std::forward<VpnConnectionIdsT>(value);
101 }
102 template <typename VpnConnectionIdsT = Aws::Vector<Aws::String>>
104 SetVpnConnectionIds(std::forward<VpnConnectionIdsT>(value));
105 return *this;
106 }
107 template <typename VpnConnectionIdsT = Aws::String>
109 m_vpnConnectionIdsHasBeenSet = true;
110 m_vpnConnectionIds.emplace_back(std::forward<VpnConnectionIdsT>(value));
111 return *this;
112 }
114
116
122 inline bool GetDryRun() const { return m_dryRun; }
123 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
124 inline void SetDryRun(bool value) {
125 m_dryRunHasBeenSet = true;
126 m_dryRun = value;
127 }
129 SetDryRun(value);
130 return *this;
131 }
133 private:
134 Aws::Vector<Filter> m_filters;
135
136 Aws::Vector<Aws::String> m_vpnConnectionIds;
137
138 bool m_dryRun{false};
139 bool m_filtersHasBeenSet = false;
140 bool m_vpnConnectionIdsHasBeenSet = false;
141 bool m_dryRunHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
DescribeVpnConnectionsRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetVpnConnectionIds() const
DescribeVpnConnectionsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeVpnConnectionsRequest & WithVpnConnectionIds(VpnConnectionIdsT &&value)
DescribeVpnConnectionsRequest & AddVpnConnectionIds(VpnConnectionIdsT &&value)
virtual const char * GetServiceRequestName() const override
DescribeVpnConnectionsRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector