AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AllocateIpamPoolCidrRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API AllocateIpamPoolCidrRequest() = 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 "AllocateIpamPoolCidr"; }
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
84 inline const Aws::String& GetCidr() const { return m_cidr; }
85 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
86 template <typename CidrT = Aws::String>
87 void SetCidr(CidrT&& value) {
88 m_cidrHasBeenSet = true;
89 m_cidr = std::forward<CidrT>(value);
90 }
91 template <typename CidrT = Aws::String>
93 SetCidr(std::forward<CidrT>(value));
94 return *this;
95 }
97
99
109 inline int GetNetmaskLength() const { return m_netmaskLength; }
110 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
111 inline void SetNetmaskLength(int value) {
112 m_netmaskLengthHasBeenSet = true;
113 m_netmaskLength = value;
114 }
116 SetNetmaskLength(value);
117 return *this;
118 }
120
122
128 inline const Aws::String& GetClientToken() const { return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 template <typename ClientTokenT = Aws::String>
131 void SetClientToken(ClientTokenT&& value) {
132 m_clientTokenHasBeenSet = true;
133 m_clientToken = std::forward<ClientTokenT>(value);
134 }
135 template <typename ClientTokenT = Aws::String>
137 SetClientToken(std::forward<ClientTokenT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDescription() const { return m_description; }
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 template <typename DescriptionT = Aws::String>
149 void SetDescription(DescriptionT&& value) {
150 m_descriptionHasBeenSet = true;
151 m_description = std::forward<DescriptionT>(value);
152 }
153 template <typename DescriptionT = Aws::String>
155 SetDescription(std::forward<DescriptionT>(value));
156 return *this;
157 }
159
161
164 inline bool GetPreviewNextCidr() const { return m_previewNextCidr; }
165 inline bool PreviewNextCidrHasBeenSet() const { return m_previewNextCidrHasBeenSet; }
166 inline void SetPreviewNextCidr(bool value) {
167 m_previewNextCidrHasBeenSet = true;
168 m_previewNextCidr = value;
169 }
171 SetPreviewNextCidr(value);
172 return *this;
173 }
175
177
181 inline const Aws::Vector<Aws::String>& GetAllowedCidrs() const { return m_allowedCidrs; }
182 inline bool AllowedCidrsHasBeenSet() const { return m_allowedCidrsHasBeenSet; }
183 template <typename AllowedCidrsT = Aws::Vector<Aws::String>>
184 void SetAllowedCidrs(AllowedCidrsT&& value) {
185 m_allowedCidrsHasBeenSet = true;
186 m_allowedCidrs = std::forward<AllowedCidrsT>(value);
187 }
188 template <typename AllowedCidrsT = Aws::Vector<Aws::String>>
190 SetAllowedCidrs(std::forward<AllowedCidrsT>(value));
191 return *this;
192 }
193 template <typename AllowedCidrsT = Aws::String>
195 m_allowedCidrsHasBeenSet = true;
196 m_allowedCidrs.emplace_back(std::forward<AllowedCidrsT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Vector<Aws::String>& GetDisallowedCidrs() const { return m_disallowedCidrs; }
207 inline bool DisallowedCidrsHasBeenSet() const { return m_disallowedCidrsHasBeenSet; }
208 template <typename DisallowedCidrsT = Aws::Vector<Aws::String>>
209 void SetDisallowedCidrs(DisallowedCidrsT&& value) {
210 m_disallowedCidrsHasBeenSet = true;
211 m_disallowedCidrs = std::forward<DisallowedCidrsT>(value);
212 }
213 template <typename DisallowedCidrsT = Aws::Vector<Aws::String>>
215 SetDisallowedCidrs(std::forward<DisallowedCidrsT>(value));
216 return *this;
217 }
218 template <typename DisallowedCidrsT = Aws::String>
220 m_disallowedCidrsHasBeenSet = true;
221 m_disallowedCidrs.emplace_back(std::forward<DisallowedCidrsT>(value));
222 return *this;
223 }
225 private:
226 bool m_dryRun{false};
227
228 Aws::String m_ipamPoolId;
229
230 Aws::String m_cidr;
231
232 int m_netmaskLength{0};
233
235
236 Aws::String m_description;
237
238 bool m_previewNextCidr{false};
239
240 Aws::Vector<Aws::String> m_allowedCidrs;
241
242 Aws::Vector<Aws::String> m_disallowedCidrs;
243 bool m_dryRunHasBeenSet = false;
244 bool m_ipamPoolIdHasBeenSet = false;
245 bool m_cidrHasBeenSet = false;
246 bool m_netmaskLengthHasBeenSet = false;
247 bool m_clientTokenHasBeenSet = true;
248 bool m_descriptionHasBeenSet = false;
249 bool m_previewNextCidrHasBeenSet = false;
250 bool m_allowedCidrsHasBeenSet = false;
251 bool m_disallowedCidrsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace EC2
256} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API AllocateIpamPoolCidrRequest()=default
AllocateIpamPoolCidrRequest & WithDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithAllowedCidrs(AllowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithNetmaskLength(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AllocateIpamPoolCidrRequest & WithPreviewNextCidr(bool value)
virtual const char * GetServiceRequestName() const override
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(DisallowedCidrsT &&value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(IpamPoolIdT &&value)
AllocateIpamPoolCidrRequest & AddAllowedCidrs(AllowedCidrsT &&value)
const Aws::Vector< Aws::String > & GetDisallowedCidrs() const
AllocateIpamPoolCidrRequest & WithCidr(CidrT &&value)
AllocateIpamPoolCidrRequest & WithClientToken(ClientTokenT &&value)
AllocateIpamPoolCidrRequest & WithDescription(DescriptionT &&value)
AllocateIpamPoolCidrRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllowedCidrs() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector