AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ProvisionIpamPoolCidrRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpamCidrAuthorizationContext.h>
12#include <aws/ec2/model/VerificationMethod.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API ProvisionIpamPoolCidrRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ProvisionIpamPoolCidr"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline bool GetDryRun() const { return m_dryRun; }
46 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
47 inline void SetDryRun(bool value) {
48 m_dryRunHasBeenSet = true;
49 m_dryRun = value;
50 }
52 SetDryRun(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
62 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
63 template <typename IpamPoolIdT = Aws::String>
64 void SetIpamPoolId(IpamPoolIdT&& value) {
65 m_ipamPoolIdHasBeenSet = true;
66 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
67 }
68 template <typename IpamPoolIdT = Aws::String>
70 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetCidr() const { return m_cidr; }
82 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
83 template <typename CidrT = Aws::String>
84 void SetCidr(CidrT&& value) {
85 m_cidrHasBeenSet = true;
86 m_cidr = std::forward<CidrT>(value);
87 }
88 template <typename CidrT = Aws::String>
90 SetCidr(std::forward<CidrT>(value));
91 return *this;
92 }
94
96
101 inline const IpamCidrAuthorizationContext& GetCidrAuthorizationContext() const { return m_cidrAuthorizationContext; }
102 inline bool CidrAuthorizationContextHasBeenSet() const { return m_cidrAuthorizationContextHasBeenSet; }
103 template <typename CidrAuthorizationContextT = IpamCidrAuthorizationContext>
104 void SetCidrAuthorizationContext(CidrAuthorizationContextT&& value) {
105 m_cidrAuthorizationContextHasBeenSet = true;
106 m_cidrAuthorizationContext = std::forward<CidrAuthorizationContextT>(value);
107 }
108 template <typename CidrAuthorizationContextT = IpamCidrAuthorizationContext>
109 ProvisionIpamPoolCidrRequest& WithCidrAuthorizationContext(CidrAuthorizationContextT&& value) {
110 SetCidrAuthorizationContext(std::forward<CidrAuthorizationContextT>(value));
111 return *this;
112 }
114
116
122 inline int GetNetmaskLength() const { return m_netmaskLength; }
123 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
124 inline void SetNetmaskLength(int value) {
125 m_netmaskLengthHasBeenSet = true;
126 m_netmaskLength = value;
127 }
129 SetNetmaskLength(value);
130 return *this;
131 }
133
135
141 inline const Aws::String& GetClientToken() const { return m_clientToken; }
142 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
143 template <typename ClientTokenT = Aws::String>
144 void SetClientToken(ClientTokenT&& value) {
145 m_clientTokenHasBeenSet = true;
146 m_clientToken = std::forward<ClientTokenT>(value);
147 }
148 template <typename ClientTokenT = Aws::String>
150 SetClientToken(std::forward<ClientTokenT>(value));
151 return *this;
152 }
154
156
161 inline VerificationMethod GetVerificationMethod() const { return m_verificationMethod; }
162 inline bool VerificationMethodHasBeenSet() const { return m_verificationMethodHasBeenSet; }
164 m_verificationMethodHasBeenSet = true;
165 m_verificationMethod = value;
166 }
169 return *this;
170 }
172
174
178 inline const Aws::String& GetIpamExternalResourceVerificationTokenId() const { return m_ipamExternalResourceVerificationTokenId; }
179 inline bool IpamExternalResourceVerificationTokenIdHasBeenSet() const { return m_ipamExternalResourceVerificationTokenIdHasBeenSet; }
180 template <typename IpamExternalResourceVerificationTokenIdT = Aws::String>
181 void SetIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT&& value) {
182 m_ipamExternalResourceVerificationTokenIdHasBeenSet = true;
183 m_ipamExternalResourceVerificationTokenId = std::forward<IpamExternalResourceVerificationTokenIdT>(value);
184 }
185 template <typename IpamExternalResourceVerificationTokenIdT = Aws::String>
186 ProvisionIpamPoolCidrRequest& WithIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT&& value) {
187 SetIpamExternalResourceVerificationTokenId(std::forward<IpamExternalResourceVerificationTokenIdT>(value));
188 return *this;
189 }
191 private:
192 bool m_dryRun{false};
193
194 Aws::String m_ipamPoolId;
195
196 Aws::String m_cidr;
197
198 IpamCidrAuthorizationContext m_cidrAuthorizationContext;
199
200 int m_netmaskLength{0};
201
203
205
206 Aws::String m_ipamExternalResourceVerificationTokenId;
207 bool m_dryRunHasBeenSet = false;
208 bool m_ipamPoolIdHasBeenSet = false;
209 bool m_cidrHasBeenSet = false;
210 bool m_cidrAuthorizationContextHasBeenSet = false;
211 bool m_netmaskLengthHasBeenSet = false;
212 bool m_clientTokenHasBeenSet = true;
213 bool m_verificationMethodHasBeenSet = false;
214 bool m_ipamExternalResourceVerificationTokenIdHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace EC2
219} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ProvisionIpamPoolCidrRequest & WithCidrAuthorizationContext(CidrAuthorizationContextT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API ProvisionIpamPoolCidrRequest()=default
ProvisionIpamPoolCidrRequest & WithIpamPoolId(IpamPoolIdT &&value)
ProvisionIpamPoolCidrRequest & WithNetmaskLength(int value)
ProvisionIpamPoolCidrRequest & WithDryRun(bool value)
void SetCidrAuthorizationContext(CidrAuthorizationContextT &&value)
ProvisionIpamPoolCidrRequest & WithVerificationMethod(VerificationMethod value)
void SetIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT &&value)
ProvisionIpamPoolCidrRequest & WithClientToken(ClientTokenT &&value)
ProvisionIpamPoolCidrRequest & WithCidr(CidrT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const IpamCidrAuthorizationContext & GetCidrAuthorizationContext() const
ProvisionIpamPoolCidrRequest & WithIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String