AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetIpamPoolAllocationsRequest.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 GetIpamPoolAllocationsRequest() = 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 "GetIpamPoolAllocations"; }
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
60 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
61 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
62 template <typename IpamPoolIdT = Aws::String>
63 void SetIpamPoolId(IpamPoolIdT&& value) {
64 m_ipamPoolIdHasBeenSet = true;
65 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
66 }
67 template <typename IpamPoolIdT = Aws::String>
69 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIpamPoolAllocationId() const { return m_ipamPoolAllocationId; }
79 inline bool IpamPoolAllocationIdHasBeenSet() const { return m_ipamPoolAllocationIdHasBeenSet; }
80 template <typename IpamPoolAllocationIdT = Aws::String>
81 void SetIpamPoolAllocationId(IpamPoolAllocationIdT&& value) {
82 m_ipamPoolAllocationIdHasBeenSet = true;
83 m_ipamPoolAllocationId = std::forward<IpamPoolAllocationIdT>(value);
84 }
85 template <typename IpamPoolAllocationIdT = Aws::String>
87 SetIpamPoolAllocationId(std::forward<IpamPoolAllocationIdT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
100 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 template <typename FiltersT = Aws::Vector<Filter>>
102 void SetFilters(FiltersT&& value) {
103 m_filtersHasBeenSet = true;
104 m_filters = std::forward<FiltersT>(value);
105 }
106 template <typename FiltersT = Aws::Vector<Filter>>
108 SetFilters(std::forward<FiltersT>(value));
109 return *this;
110 }
111 template <typename FiltersT = Filter>
113 m_filtersHasBeenSet = true;
114 m_filters.emplace_back(std::forward<FiltersT>(value));
115 return *this;
116 }
118
120
123 inline int GetMaxResults() const { return m_maxResults; }
124 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
125 inline void SetMaxResults(int value) {
126 m_maxResultsHasBeenSet = true;
127 m_maxResults = value;
128 }
130 SetMaxResults(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetNextToken() const { return m_nextToken; }
140 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
141 template <typename NextTokenT = Aws::String>
142 void SetNextToken(NextTokenT&& value) {
143 m_nextTokenHasBeenSet = true;
144 m_nextToken = std::forward<NextTokenT>(value);
145 }
146 template <typename NextTokenT = Aws::String>
148 SetNextToken(std::forward<NextTokenT>(value));
149 return *this;
150 }
152 private:
153 bool m_dryRun{false};
154
155 Aws::String m_ipamPoolId;
156
157 Aws::String m_ipamPoolAllocationId;
158
159 Aws::Vector<Filter> m_filters;
160
161 int m_maxResults{0};
162
163 Aws::String m_nextToken;
164 bool m_dryRunHasBeenSet = false;
165 bool m_ipamPoolIdHasBeenSet = false;
166 bool m_ipamPoolAllocationIdHasBeenSet = false;
167 bool m_filtersHasBeenSet = false;
168 bool m_maxResultsHasBeenSet = false;
169 bool m_nextTokenHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetIpamPoolAllocationsRequest & WithFilters(FiltersT &&value)
GetIpamPoolAllocationsRequest & WithIpamPoolAllocationId(IpamPoolAllocationIdT &&value)
GetIpamPoolAllocationsRequest & AddFilters(FiltersT &&value)
GetIpamPoolAllocationsRequest & WithDryRun(bool value)
void SetIpamPoolAllocationId(IpamPoolAllocationIdT &&value)
GetIpamPoolAllocationsRequest & WithIpamPoolId(IpamPoolIdT &&value)
GetIpamPoolAllocationsRequest & WithNextToken(NextTokenT &&value)
GetIpamPoolAllocationsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector