AWS SDK for C++  1.9.73
AWS SDK for C++
DescribeNetworkAclsRequest.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 "DescribeNetworkAcls"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
75  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
76 
111  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
112 
147  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
148 
183  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
184 
219  inline DescribeNetworkAclsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
220 
255  inline DescribeNetworkAclsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
256 
291  inline DescribeNetworkAclsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
292 
327  inline DescribeNetworkAclsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
328 
329 
336  inline bool GetDryRun() const{ return m_dryRun; }
337 
344  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
345 
352  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
353 
360  inline DescribeNetworkAclsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
361 
362 
367  inline const Aws::Vector<Aws::String>& GetNetworkAclIds() const{ return m_networkAclIds; }
368 
373  inline bool NetworkAclIdsHasBeenSet() const { return m_networkAclIdsHasBeenSet; }
374 
379  inline void SetNetworkAclIds(const Aws::Vector<Aws::String>& value) { m_networkAclIdsHasBeenSet = true; m_networkAclIds = value; }
380 
385  inline void SetNetworkAclIds(Aws::Vector<Aws::String>&& value) { m_networkAclIdsHasBeenSet = true; m_networkAclIds = std::move(value); }
386 
391  inline DescribeNetworkAclsRequest& WithNetworkAclIds(const Aws::Vector<Aws::String>& value) { SetNetworkAclIds(value); return *this;}
392 
397  inline DescribeNetworkAclsRequest& WithNetworkAclIds(Aws::Vector<Aws::String>&& value) { SetNetworkAclIds(std::move(value)); return *this;}
398 
403  inline DescribeNetworkAclsRequest& AddNetworkAclIds(const Aws::String& value) { m_networkAclIdsHasBeenSet = true; m_networkAclIds.push_back(value); return *this; }
404 
409  inline DescribeNetworkAclsRequest& AddNetworkAclIds(Aws::String&& value) { m_networkAclIdsHasBeenSet = true; m_networkAclIds.push_back(std::move(value)); return *this; }
410 
415  inline DescribeNetworkAclsRequest& AddNetworkAclIds(const char* value) { m_networkAclIdsHasBeenSet = true; m_networkAclIds.push_back(value); return *this; }
416 
417 
421  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
422 
426  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
427 
431  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
432 
436  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
437 
441  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
442 
446  inline DescribeNetworkAclsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
447 
451  inline DescribeNetworkAclsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
452 
456  inline DescribeNetworkAclsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
457 
458 
464  inline int GetMaxResults() const{ return m_maxResults; }
465 
471  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
472 
478  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
479 
485  inline DescribeNetworkAclsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
486 
487  private:
488 
489  Aws::Vector<Filter> m_filters;
490  bool m_filtersHasBeenSet;
491 
492  bool m_dryRun;
493  bool m_dryRunHasBeenSet;
494 
495  Aws::Vector<Aws::String> m_networkAclIds;
496  bool m_networkAclIdsHasBeenSet;
497 
498  Aws::String m_nextToken;
499  bool m_nextTokenHasBeenSet;
500 
501  int m_maxResults;
502  bool m_maxResultsHasBeenSet;
503  };
504 
505 } // namespace Model
506 } // namespace EC2
507 } // namespace Aws
Aws::EC2::Model::DescribeNetworkAclsRequest::AddNetworkAclIds
DescribeNetworkAclsRequest & AddNetworkAclIds(const Aws::String &value)
Definition: DescribeNetworkAclsRequest.h:403
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeNetworkAclsRequest::WithNextToken
DescribeNetworkAclsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeNetworkAclsRequest.h:451
Aws::EC2::Model::DescribeNetworkAclsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeNetworkAclsRequest.h:344
Aws::EC2::Model::DescribeNetworkAclsRequest::WithNextToken
DescribeNetworkAclsRequest & WithNextToken(const char *value)
Definition: DescribeNetworkAclsRequest.h:456
Aws::EC2::Model::DescribeNetworkAclsRequest::GetNetworkAclIds
const Aws::Vector< Aws::String > & GetNetworkAclIds() const
Definition: DescribeNetworkAclsRequest.h:367
Aws::EC2::Model::DescribeNetworkAclsRequest::WithFilters
DescribeNetworkAclsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeNetworkAclsRequest.h:255
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeNetworkAclsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeNetworkAclsRequest.h:336
Aws::EC2::Model::DescribeNetworkAclsRequest::WithDryRun
DescribeNetworkAclsRequest & WithDryRun(bool value)
Definition: DescribeNetworkAclsRequest.h:360
Aws::EC2::Model::DescribeNetworkAclsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeNetworkAclsRequest.h:464
Aws::EC2::Model::DescribeNetworkAclsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeNetworkAclsRequest.h:441
AWSVector.h
Aws::EC2::Model::DescribeNetworkAclsRequest::AddFilters
DescribeNetworkAclsRequest & AddFilters(Filter &&value)
Definition: DescribeNetworkAclsRequest.h:327
Aws::EC2::Model::DescribeNetworkAclsRequest::WithNextToken
DescribeNetworkAclsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeNetworkAclsRequest.h:446
Filter.h
Aws::EC2::Model::DescribeNetworkAclsRequest::WithFilters
DescribeNetworkAclsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeNetworkAclsRequest.h:219
Aws::EC2::Model::DescribeNetworkAclsRequest::SetNetworkAclIds
void SetNetworkAclIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNetworkAclsRequest.h:385
Aws::EC2::Model::DescribeNetworkAclsRequest::WithMaxResults
DescribeNetworkAclsRequest & WithMaxResults(int value)
Definition: DescribeNetworkAclsRequest.h:485
Aws::EC2::Model::DescribeNetworkAclsRequest
Definition: DescribeNetworkAclsRequest.h:24
Aws::EC2::Model::DescribeNetworkAclsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeNetworkAclsRequest.h:478
Aws::EC2::Model::DescribeNetworkAclsRequest::DescribeNetworkAclsRequest
DescribeNetworkAclsRequest()
Aws::EC2::Model::DescribeNetworkAclsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeNetworkAclsRequest::AddNetworkAclIds
DescribeNetworkAclsRequest & AddNetworkAclIds(const char *value)
Definition: DescribeNetworkAclsRequest.h:415
Aws::EC2::Model::DescribeNetworkAclsRequest::AddFilters
DescribeNetworkAclsRequest & AddFilters(const Filter &value)
Definition: DescribeNetworkAclsRequest.h:291
EC2Request.h
Aws::EC2::Model::DescribeNetworkAclsRequest::NetworkAclIdsHasBeenSet
bool NetworkAclIdsHasBeenSet() const
Definition: DescribeNetworkAclsRequest.h:373
Aws::EC2::Model::DescribeNetworkAclsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeNetworkAclsRequest.h:421
AWSString.h
Aws::EC2::Model::DescribeNetworkAclsRequest::WithNetworkAclIds
DescribeNetworkAclsRequest & WithNetworkAclIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNetworkAclsRequest.h:391
Aws::EC2::Model::DescribeNetworkAclsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeNetworkAclsRequest.h:352
Aws::EC2::Model::DescribeNetworkAclsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeNetworkAclsRequest.h:436
Aws::EC2::Model::DescribeNetworkAclsRequest::SetNetworkAclIds
void SetNetworkAclIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNetworkAclsRequest.h:379
Aws::EC2::Model::DescribeNetworkAclsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeNetworkAclsRequest.h:426
Aws::EC2::Model::DescribeNetworkAclsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeNetworkAclsRequest.h:431
Aws::EC2::Model::DescribeNetworkAclsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeNetworkAclsRequest.h:471
Aws::EC2::Model::DescribeNetworkAclsRequest::AddNetworkAclIds
DescribeNetworkAclsRequest & AddNetworkAclIds(Aws::String &&value)
Definition: DescribeNetworkAclsRequest.h:409
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeNetworkAclsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeNetworkAclsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeNetworkAclsRequest.h:183
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeNetworkAclsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeNetworkAclsRequest.h:111
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeNetworkAclsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeNetworkAclsRequest.h:32
Aws::EC2::Model::DescribeNetworkAclsRequest::WithNetworkAclIds
DescribeNetworkAclsRequest & WithNetworkAclIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNetworkAclsRequest.h:397
Aws::EC2::Model::DescribeNetworkAclsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeNetworkAclsRequest.h:75
EC2_EXPORTS.h
Aws::EC2::Model::DescribeNetworkAclsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeNetworkAclsRequest.h:147