AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeNatGatewaysRequest.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 "DescribeNatGateways"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeNatGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
91  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
92 
110  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
111 
129  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
130 
148  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
149 
167  inline DescribeNatGatewaysRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
168 
186  inline DescribeNatGatewaysRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
187 
205  inline DescribeNatGatewaysRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
206 
224  inline DescribeNatGatewaysRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
225 
226 
232  inline int GetMaxResults() const{ return m_maxResults; }
233 
239  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
240 
246  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
247 
253  inline DescribeNatGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
254 
255 
259  inline const Aws::Vector<Aws::String>& GetNatGatewayIds() const{ return m_natGatewayIds; }
260 
264  inline bool NatGatewayIdsHasBeenSet() const { return m_natGatewayIdsHasBeenSet; }
265 
269  inline void SetNatGatewayIds(const Aws::Vector<Aws::String>& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds = value; }
270 
274  inline void SetNatGatewayIds(Aws::Vector<Aws::String>&& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds = std::move(value); }
275 
279  inline DescribeNatGatewaysRequest& WithNatGatewayIds(const Aws::Vector<Aws::String>& value) { SetNatGatewayIds(value); return *this;}
280 
284  inline DescribeNatGatewaysRequest& WithNatGatewayIds(Aws::Vector<Aws::String>&& value) { SetNatGatewayIds(std::move(value)); return *this;}
285 
289  inline DescribeNatGatewaysRequest& AddNatGatewayIds(const Aws::String& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(value); return *this; }
290 
294  inline DescribeNatGatewaysRequest& AddNatGatewayIds(Aws::String&& value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(std::move(value)); return *this; }
295 
299  inline DescribeNatGatewaysRequest& AddNatGatewayIds(const char* value) { m_natGatewayIdsHasBeenSet = true; m_natGatewayIds.push_back(value); return *this; }
300 
301 
305  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
306 
310  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
311 
315  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
316 
320  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
321 
325  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
326 
330  inline DescribeNatGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
331 
335  inline DescribeNatGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
336 
340  inline DescribeNatGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
341 
342  private:
343 
344  bool m_dryRun;
345  bool m_dryRunHasBeenSet;
346 
347  Aws::Vector<Filter> m_filter;
348  bool m_filterHasBeenSet;
349 
350  int m_maxResults;
351  bool m_maxResultsHasBeenSet;
352 
353  Aws::Vector<Aws::String> m_natGatewayIds;
354  bool m_natGatewayIdsHasBeenSet;
355 
356  Aws::String m_nextToken;
357  bool m_nextTokenHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace EC2
362 } // namespace Aws
Aws::EC2::Model::DescribeNatGatewaysRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeNatGatewaysRequest.h:246
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeNatGatewaysRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeNatGatewaysRequest.h:239
Aws::EC2::Model::DescribeNatGatewaysRequest::AddNatGatewayIds
DescribeNatGatewaysRequest & AddNatGatewayIds(const Aws::String &value)
Definition: DescribeNatGatewaysRequest.h:289
Aws::EC2::Model::DescribeNatGatewaysRequest::WithNextToken
DescribeNatGatewaysRequest & WithNextToken(const char *value)
Definition: DescribeNatGatewaysRequest.h:340
Aws::EC2::Model::DescribeNatGatewaysRequest::WithNatGatewayIds
DescribeNatGatewaysRequest & WithNatGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNatGatewaysRequest.h:279
Aws::EC2::Model::DescribeNatGatewaysRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeNatGatewaysRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeNatGatewaysRequest.h:47
Aws::EC2::Model::DescribeNatGatewaysRequest::DescribeNatGatewaysRequest
DescribeNatGatewaysRequest()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeNatGatewaysRequest::GetNatGatewayIds
const Aws::Vector< Aws::String > & GetNatGatewayIds() const
Definition: DescribeNatGatewaysRequest.h:259
Aws::EC2::Model::DescribeNatGatewaysRequest::WithMaxResults
DescribeNatGatewaysRequest & WithMaxResults(int value)
Definition: DescribeNatGatewaysRequest.h:253
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeNatGatewaysRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeNatGatewaysRequest.h:63
Aws::EC2::Model::DescribeNatGatewaysRequest::WithFilter
DescribeNatGatewaysRequest & WithFilter(Aws::Vector< Filter > &&value)
Definition: DescribeNatGatewaysRequest.h:186
Aws::EC2::Model::DescribeNatGatewaysRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeNatGatewaysRequest.h:55
Aws::EC2::Model::DescribeNatGatewaysRequest::AddFilter
DescribeNatGatewaysRequest & AddFilter(Filter &&value)
Definition: DescribeNatGatewaysRequest.h:224
Aws::EC2::Model::DescribeNatGatewaysRequest::WithFilter
DescribeNatGatewaysRequest & WithFilter(const Aws::Vector< Filter > &value)
Definition: DescribeNatGatewaysRequest.h:167
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeNatGatewaysRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeNatGatewaysRequest.h:320
Aws::EC2::Model::DescribeNatGatewaysRequest::WithNextToken
DescribeNatGatewaysRequest & WithNextToken(Aws::String &&value)
Definition: DescribeNatGatewaysRequest.h:335
Aws::EC2::Model::DescribeNatGatewaysRequest::GetFilter
const Aws::Vector< Filter > & GetFilter() const
Definition: DescribeNatGatewaysRequest.h:91
Aws::EC2::Model::DescribeNatGatewaysRequest::AddFilter
DescribeNatGatewaysRequest & AddFilter(const Filter &value)
Definition: DescribeNatGatewaysRequest.h:205
Aws::EC2::Model::DescribeNatGatewaysRequest::WithDryRun
DescribeNatGatewaysRequest & WithDryRun(bool value)
Definition: DescribeNatGatewaysRequest.h:71
Aws::EC2::Model::DescribeNatGatewaysRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::DescribeNatGatewaysRequest::SetNatGatewayIds
void SetNatGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNatGatewaysRequest.h:274
AWSString.h
Aws::EC2::Model::DescribeNatGatewaysRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeNatGatewaysRequest.h:305
Aws::EC2::Model::DescribeNatGatewaysRequest::WithNextToken
DescribeNatGatewaysRequest & WithNextToken(const Aws::String &value)
Definition: DescribeNatGatewaysRequest.h:330
Aws::EC2::Model::DescribeNatGatewaysRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeNatGatewaysRequest.h:310
Aws::EC2::Model::DescribeNatGatewaysRequest::SetFilter
void SetFilter(const Aws::Vector< Filter > &value)
Definition: DescribeNatGatewaysRequest.h:129
Aws::EC2::Model::DescribeNatGatewaysRequest::AddNatGatewayIds
DescribeNatGatewaysRequest & AddNatGatewayIds(const char *value)
Definition: DescribeNatGatewaysRequest.h:299
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeNatGatewaysRequest::NatGatewayIdsHasBeenSet
bool NatGatewayIdsHasBeenSet() const
Definition: DescribeNatGatewaysRequest.h:264
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeNatGatewaysRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeNatGatewaysRequest.h:32
Aws::EC2::Model::DescribeNatGatewaysRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeNatGatewaysRequest.h:325
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeNatGatewaysRequest::AddNatGatewayIds
DescribeNatGatewaysRequest & AddNatGatewayIds(Aws::String &&value)
Definition: DescribeNatGatewaysRequest.h:294
Aws::EC2::Model::DescribeNatGatewaysRequest
Definition: DescribeNatGatewaysRequest.h:24
Aws::EC2::Model::DescribeNatGatewaysRequest::SetNatGatewayIds
void SetNatGatewayIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNatGatewaysRequest.h:269
Aws::EC2::Model::DescribeNatGatewaysRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeNatGatewaysRequest.h:232
Aws::EC2::Model::DescribeNatGatewaysRequest::SetFilter
void SetFilter(Aws::Vector< Filter > &&value)
Definition: DescribeNatGatewaysRequest.h:148
EC2_EXPORTS.h
Aws::EC2::Model::DescribeNatGatewaysRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeNatGatewaysRequest.h:315
Aws::EC2::Model::DescribeNatGatewaysRequest::WithNatGatewayIds
DescribeNatGatewaysRequest & WithNatGatewayIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNatGatewaysRequest.h:284
Aws::EC2::Model::DescribeNatGatewaysRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: DescribeNatGatewaysRequest.h:110