AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeClientVpnConnectionsRequest.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
22 public:
23 AWS_EC2_API DescribeClientVpnConnectionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeClientVpnConnections"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
42 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
43 template <typename ClientVpnEndpointIdT = Aws::String>
44 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
45 m_clientVpnEndpointIdHasBeenSet = true;
46 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
47 }
48 template <typename ClientVpnEndpointIdT = Aws::String>
50 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
63 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
64 template <typename FiltersT = Aws::Vector<Filter>>
65 void SetFilters(FiltersT&& value) {
66 m_filtersHasBeenSet = true;
67 m_filters = std::forward<FiltersT>(value);
68 }
69 template <typename FiltersT = Aws::Vector<Filter>>
71 SetFilters(std::forward<FiltersT>(value));
72 return *this;
73 }
74 template <typename FiltersT = Filter>
76 m_filtersHasBeenSet = true;
77 m_filters.emplace_back(std::forward<FiltersT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template <typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) {
90 m_nextTokenHasBeenSet = true;
91 m_nextToken = std::forward<NextTokenT>(value);
92 }
93 template <typename NextTokenT = Aws::String>
95 SetNextToken(std::forward<NextTokenT>(value));
96 return *this;
97 }
99
101
106 inline int GetMaxResults() const { return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) {
109 m_maxResultsHasBeenSet = true;
110 m_maxResults = value;
111 }
113 SetMaxResults(value);
114 return *this;
115 }
117
119
125 inline bool GetDryRun() const { return m_dryRun; }
126 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 inline void SetDryRun(bool value) {
128 m_dryRunHasBeenSet = true;
129 m_dryRun = value;
130 }
132 SetDryRun(value);
133 return *this;
134 }
136 private:
137 Aws::String m_clientVpnEndpointId;
138
139 Aws::Vector<Filter> m_filters;
140
141 Aws::String m_nextToken;
142
143 int m_maxResults{0};
144
145 bool m_dryRun{false};
146 bool m_clientVpnEndpointIdHasBeenSet = false;
147 bool m_filtersHasBeenSet = false;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_maxResultsHasBeenSet = false;
150 bool m_dryRunHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace EC2
155} // namespace Aws
DescribeClientVpnConnectionsRequest & WithDryRun(bool value)
DescribeClientVpnConnectionsRequest & WithMaxResults(int value)
DescribeClientVpnConnectionsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeClientVpnConnectionsRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeClientVpnConnectionsRequest & AddFilters(FiltersT &&value)
DescribeClientVpnConnectionsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector