AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeClientVpnEndpointsRequest.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 DescribeClientVpnEndpointsRequest() = 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 "DescribeClientVpnEndpoints"; }
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::Vector<Aws::String>& GetClientVpnEndpointIds() const { return m_clientVpnEndpointIds; }
42 inline bool ClientVpnEndpointIdsHasBeenSet() const { return m_clientVpnEndpointIdsHasBeenSet; }
43 template <typename ClientVpnEndpointIdsT = Aws::Vector<Aws::String>>
44 void SetClientVpnEndpointIds(ClientVpnEndpointIdsT&& value) {
45 m_clientVpnEndpointIdsHasBeenSet = true;
46 m_clientVpnEndpointIds = std::forward<ClientVpnEndpointIdsT>(value);
47 }
48 template <typename ClientVpnEndpointIdsT = Aws::Vector<Aws::String>>
50 SetClientVpnEndpointIds(std::forward<ClientVpnEndpointIdsT>(value));
51 return *this;
52 }
53 template <typename ClientVpnEndpointIdsT = Aws::String>
55 m_clientVpnEndpointIdsHasBeenSet = true;
56 m_clientVpnEndpointIds.emplace_back(std::forward<ClientVpnEndpointIdsT>(value));
57 return *this;
58 }
60
62
67 inline int GetMaxResults() const { return m_maxResults; }
68 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
69 inline void SetMaxResults(int value) {
70 m_maxResultsHasBeenSet = true;
71 m_maxResults = value;
72 }
74 SetMaxResults(value);
75 return *this;
76 }
78
80
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
105 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
106 template <typename FiltersT = Aws::Vector<Filter>>
107 void SetFilters(FiltersT&& value) {
108 m_filtersHasBeenSet = true;
109 m_filters = std::forward<FiltersT>(value);
110 }
111 template <typename FiltersT = Aws::Vector<Filter>>
113 SetFilters(std::forward<FiltersT>(value));
114 return *this;
115 }
116 template <typename FiltersT = Filter>
118 m_filtersHasBeenSet = true;
119 m_filters.emplace_back(std::forward<FiltersT>(value));
120 return *this;
121 }
123
125
131 inline bool GetDryRun() const { return m_dryRun; }
132 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
133 inline void SetDryRun(bool value) {
134 m_dryRunHasBeenSet = true;
135 m_dryRun = value;
136 }
138 SetDryRun(value);
139 return *this;
140 }
142 private:
143 Aws::Vector<Aws::String> m_clientVpnEndpointIds;
144
145 int m_maxResults{0};
146
147 Aws::String m_nextToken;
148
149 Aws::Vector<Filter> m_filters;
150
151 bool m_dryRun{false};
152 bool m_clientVpnEndpointIdsHasBeenSet = false;
153 bool m_maxResultsHasBeenSet = false;
154 bool m_nextTokenHasBeenSet = false;
155 bool m_filtersHasBeenSet = false;
156 bool m_dryRunHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace EC2
161} // namespace Aws
DescribeClientVpnEndpointsRequest & WithClientVpnEndpointIds(ClientVpnEndpointIdsT &&value)
DescribeClientVpnEndpointsRequest & AddClientVpnEndpointIds(ClientVpnEndpointIdsT &&value)
DescribeClientVpnEndpointsRequest & WithMaxResults(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeClientVpnEndpointsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetClientVpnEndpointIds() const
DescribeClientVpnEndpointsRequest & WithDryRun(bool value)
DescribeClientVpnEndpointsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeClientVpnEndpointsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector