AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeClientVpnEndpointsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeClientVpnEndpoints"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetClientVpnEndpointIds() const{ return m_clientVpnEndpointIds; }
45 
49  inline bool ClientVpnEndpointIdsHasBeenSet() const { return m_clientVpnEndpointIdsHasBeenSet; }
50 
54  inline void SetClientVpnEndpointIds(const Aws::Vector<Aws::String>& value) { m_clientVpnEndpointIdsHasBeenSet = true; m_clientVpnEndpointIds = value; }
55 
59  inline void SetClientVpnEndpointIds(Aws::Vector<Aws::String>&& value) { m_clientVpnEndpointIdsHasBeenSet = true; m_clientVpnEndpointIds = std::move(value); }
60 
64  inline DescribeClientVpnEndpointsRequest& WithClientVpnEndpointIds(const Aws::Vector<Aws::String>& value) { SetClientVpnEndpointIds(value); return *this;}
65 
69  inline DescribeClientVpnEndpointsRequest& WithClientVpnEndpointIds(Aws::Vector<Aws::String>&& value) { SetClientVpnEndpointIds(std::move(value)); return *this;}
70 
74  inline DescribeClientVpnEndpointsRequest& AddClientVpnEndpointIds(const Aws::String& value) { m_clientVpnEndpointIdsHasBeenSet = true; m_clientVpnEndpointIds.push_back(value); return *this; }
75 
79  inline DescribeClientVpnEndpointsRequest& AddClientVpnEndpointIds(Aws::String&& value) { m_clientVpnEndpointIdsHasBeenSet = true; m_clientVpnEndpointIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeClientVpnEndpointsRequest& AddClientVpnEndpointIds(const char* value) { m_clientVpnEndpointIdsHasBeenSet = true; m_clientVpnEndpointIds.push_back(value); return *this; }
85 
86 
92  inline int GetMaxResults() const{ return m_maxResults; }
93 
99  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 
106  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
107 
113  inline DescribeClientVpnEndpointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114 
115 
119  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 
124  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 
129  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
130 
134  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
135 
139  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 
144  inline DescribeClientVpnEndpointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
145 
149  inline DescribeClientVpnEndpointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
150 
154  inline DescribeClientVpnEndpointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
155 
156 
163  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
164 
171  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
172 
179  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
180 
187  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
188 
195  inline DescribeClientVpnEndpointsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
196 
203  inline DescribeClientVpnEndpointsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
204 
211  inline DescribeClientVpnEndpointsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
212 
219  inline DescribeClientVpnEndpointsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
220 
221 
228  inline bool GetDryRun() const{ return m_dryRun; }
229 
236  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
237 
244  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
245 
252  inline DescribeClientVpnEndpointsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
253 
254  private:
255 
256  Aws::Vector<Aws::String> m_clientVpnEndpointIds;
257  bool m_clientVpnEndpointIdsHasBeenSet;
258 
259  int m_maxResults;
260  bool m_maxResultsHasBeenSet;
261 
262  Aws::String m_nextToken;
263  bool m_nextTokenHasBeenSet;
264 
265  Aws::Vector<Filter> m_filters;
266  bool m_filtersHasBeenSet;
267 
268  bool m_dryRun;
269  bool m_dryRunHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace EC2
274 } // namespace Aws
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithClientVpnEndpointIds
DescribeClientVpnEndpointsRequest & WithClientVpnEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeClientVpnEndpointsRequest.h:69
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeClientVpnEndpointsRequest.h:99
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::AddClientVpnEndpointIds
DescribeClientVpnEndpointsRequest & AddClientVpnEndpointIds(const Aws::String &value)
Definition: DescribeClientVpnEndpointsRequest.h:74
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::ClientVpnEndpointIdsHasBeenSet
bool ClientVpnEndpointIdsHasBeenSet() const
Definition: DescribeClientVpnEndpointsRequest.h:49
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeClientVpnEndpointsRequest.h:134
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeClientVpnEndpointsRequest.h:228
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeClientVpnEndpointsRequest.h:179
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::DescribeClientVpnEndpointsRequest
DescribeClientVpnEndpointsRequest()
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeClientVpnEndpointsRequest.h:139
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeClientVpnEndpointsRequest.h:119
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithClientVpnEndpointIds
DescribeClientVpnEndpointsRequest & WithClientVpnEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeClientVpnEndpointsRequest.h:64
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetClientVpnEndpointIds
void SetClientVpnEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeClientVpnEndpointsRequest.h:54
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetClientVpnEndpointIds
const Aws::Vector< Aws::String > & GetClientVpnEndpointIds() const
Definition: DescribeClientVpnEndpointsRequest.h:44
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeClientVpnEndpointsRequest.h:163
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetClientVpnEndpointIds
void SetClientVpnEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeClientVpnEndpointsRequest.h:59
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeClientVpnEndpointsRequest.h:129
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::AddClientVpnEndpointIds
DescribeClientVpnEndpointsRequest & AddClientVpnEndpointIds(Aws::String &&value)
Definition: DescribeClientVpnEndpointsRequest.h:79
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithFilters
DescribeClientVpnEndpointsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeClientVpnEndpointsRequest.h:203
EC2Request.h
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::AddClientVpnEndpointIds
DescribeClientVpnEndpointsRequest & AddClientVpnEndpointIds(const char *value)
Definition: DescribeClientVpnEndpointsRequest.h:84
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeClientVpnEndpointsRequest.h:171
AWSString.h
Aws::EC2::Model::DescribeClientVpnEndpointsRequest
Definition: DescribeClientVpnEndpointsRequest.h:24
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithNextToken
DescribeClientVpnEndpointsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeClientVpnEndpointsRequest.h:149
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeClientVpnEndpointsRequest.h:236
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::AddFilters
DescribeClientVpnEndpointsRequest & AddFilters(const Filter &value)
Definition: DescribeClientVpnEndpointsRequest.h:211
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeClientVpnEndpointsRequest.h:32
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithNextToken
DescribeClientVpnEndpointsRequest & WithNextToken(const char *value)
Definition: DescribeClientVpnEndpointsRequest.h:154
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithNextToken
DescribeClientVpnEndpointsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeClientVpnEndpointsRequest.h:144
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeClientVpnEndpointsRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::AddFilters
DescribeClientVpnEndpointsRequest & AddFilters(Filter &&value)
Definition: DescribeClientVpnEndpointsRequest.h:219
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeClientVpnEndpointsRequest.h:106
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithDryRun
DescribeClientVpnEndpointsRequest & WithDryRun(bool value)
Definition: DescribeClientVpnEndpointsRequest.h:252
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithFilters
DescribeClientVpnEndpointsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeClientVpnEndpointsRequest.h:195
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeClientVpnEndpointsRequest.h:187
EC2_EXPORTS.h
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeClientVpnEndpointsRequest.h:244
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::WithMaxResults
DescribeClientVpnEndpointsRequest & WithMaxResults(int value)
Definition: DescribeClientVpnEndpointsRequest.h:113
Aws::EC2::Model::DescribeClientVpnEndpointsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeClientVpnEndpointsRequest.h:92