AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeIpamPoolsRequest.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 DescribeIpamPoolsRequest() = 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 "DescribeIpamPools"; }
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
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 template <typename FiltersT = Aws::Vector<Filter>>
66 void SetFilters(FiltersT&& value) {
67 m_filtersHasBeenSet = true;
68 m_filters = std::forward<FiltersT>(value);
69 }
70 template <typename FiltersT = Aws::Vector<Filter>>
72 SetFilters(std::forward<FiltersT>(value));
73 return *this;
74 }
75 template <typename FiltersT = Filter>
77 m_filtersHasBeenSet = true;
78 m_filters.emplace_back(std::forward<FiltersT>(value));
79 return *this;
80 }
82
84
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) {
90 m_maxResultsHasBeenSet = true;
91 m_maxResults = value;
92 }
94 SetMaxResults(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetNextToken() const { return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 template <typename NextTokenT = Aws::String>
106 void SetNextToken(NextTokenT&& value) {
107 m_nextTokenHasBeenSet = true;
108 m_nextToken = std::forward<NextTokenT>(value);
109 }
110 template <typename NextTokenT = Aws::String>
112 SetNextToken(std::forward<NextTokenT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Aws::String>& GetIpamPoolIds() const { return m_ipamPoolIds; }
122 inline bool IpamPoolIdsHasBeenSet() const { return m_ipamPoolIdsHasBeenSet; }
123 template <typename IpamPoolIdsT = Aws::Vector<Aws::String>>
124 void SetIpamPoolIds(IpamPoolIdsT&& value) {
125 m_ipamPoolIdsHasBeenSet = true;
126 m_ipamPoolIds = std::forward<IpamPoolIdsT>(value);
127 }
128 template <typename IpamPoolIdsT = Aws::Vector<Aws::String>>
130 SetIpamPoolIds(std::forward<IpamPoolIdsT>(value));
131 return *this;
132 }
133 template <typename IpamPoolIdsT = Aws::String>
135 m_ipamPoolIdsHasBeenSet = true;
136 m_ipamPoolIds.emplace_back(std::forward<IpamPoolIdsT>(value));
137 return *this;
138 }
140 private:
141 bool m_dryRun{false};
142
143 Aws::Vector<Filter> m_filters;
144
145 int m_maxResults{0};
146
147 Aws::String m_nextToken;
148
149 Aws::Vector<Aws::String> m_ipamPoolIds;
150 bool m_dryRunHasBeenSet = false;
151 bool m_filtersHasBeenSet = false;
152 bool m_maxResultsHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154 bool m_ipamPoolIdsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
const Aws::Vector< Filter > & GetFilters() const
const Aws::Vector< Aws::String > & GetIpamPoolIds() const
DescribeIpamPoolsRequest & AddFilters(FiltersT &&value)
DescribeIpamPoolsRequest & WithDryRun(bool value)
DescribeIpamPoolsRequest & WithIpamPoolIds(IpamPoolIdsT &&value)
DescribeIpamPoolsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeIpamPoolsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API DescribeIpamPoolsRequest()=default
DescribeIpamPoolsRequest & WithMaxResults(int value)
DescribeIpamPoolsRequest & AddIpamPoolIds(IpamPoolIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector