AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeClientVpnRoutesRequest.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 DescribeClientVpnRoutesRequest() = 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 "DescribeClientVpnRoutes"; }
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
64 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
65 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
66 template <typename FiltersT = Aws::Vector<Filter>>
67 void SetFilters(FiltersT&& value) {
68 m_filtersHasBeenSet = true;
69 m_filters = std::forward<FiltersT>(value);
70 }
71 template <typename FiltersT = Aws::Vector<Filter>>
73 SetFilters(std::forward<FiltersT>(value));
74 return *this;
75 }
76 template <typename FiltersT = Filter>
78 m_filtersHasBeenSet = true;
79 m_filters.emplace_back(std::forward<FiltersT>(value));
80 return *this;
81 }
83
85
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119
121
127 inline bool GetDryRun() const { return m_dryRun; }
128 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
129 inline void SetDryRun(bool value) {
130 m_dryRunHasBeenSet = true;
131 m_dryRun = value;
132 }
134 SetDryRun(value);
135 return *this;
136 }
138 private:
139 Aws::String m_clientVpnEndpointId;
140
141 Aws::Vector<Filter> m_filters;
142
143 int m_maxResults{0};
144
145 Aws::String m_nextToken;
146
147 bool m_dryRun{false};
148 bool m_clientVpnEndpointIdHasBeenSet = false;
149 bool m_filtersHasBeenSet = false;
150 bool m_maxResultsHasBeenSet = false;
151 bool m_nextTokenHasBeenSet = false;
152 bool m_dryRunHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace EC2
157} // namespace Aws
DescribeClientVpnRoutesRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeClientVpnRoutesRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeClientVpnRoutesRequest & AddFilters(FiltersT &&value)
DescribeClientVpnRoutesRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeClientVpnRoutesRequest & WithFilters(FiltersT &&value)
DescribeClientVpnRoutesRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector