AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProvisionIpamPoolCidrRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IpamCidrAuthorizationContext.h>
11#include <aws/ec2/model/VerificationMethod.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ProvisionIpamPoolCidr"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline ProvisionIpamPoolCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; }
60 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
61 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
62 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
63 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
64 inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
65 inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
66 inline ProvisionIpamPoolCidrRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
68
70
75 inline const Aws::String& GetCidr() const{ return m_cidr; }
76 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
77 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
78 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
79 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
80 inline ProvisionIpamPoolCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
81 inline ProvisionIpamPoolCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
82 inline ProvisionIpamPoolCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
84
86
91 inline const IpamCidrAuthorizationContext& GetCidrAuthorizationContext() const{ return m_cidrAuthorizationContext; }
92 inline bool CidrAuthorizationContextHasBeenSet() const { return m_cidrAuthorizationContextHasBeenSet; }
93 inline void SetCidrAuthorizationContext(const IpamCidrAuthorizationContext& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = value; }
94 inline void SetCidrAuthorizationContext(IpamCidrAuthorizationContext&& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = std::move(value); }
98
100
106 inline int GetNetmaskLength() const{ return m_netmaskLength; }
107 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
108 inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; }
109 inline ProvisionIpamPoolCidrRequest& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;}
111
113
119 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
122 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
123 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
124 inline ProvisionIpamPoolCidrRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
125 inline ProvisionIpamPoolCidrRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
126 inline ProvisionIpamPoolCidrRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
128
130
135 inline const VerificationMethod& GetVerificationMethod() const{ return m_verificationMethod; }
136 inline bool VerificationMethodHasBeenSet() const { return m_verificationMethodHasBeenSet; }
137 inline void SetVerificationMethod(const VerificationMethod& value) { m_verificationMethodHasBeenSet = true; m_verificationMethod = value; }
138 inline void SetVerificationMethod(VerificationMethod&& value) { m_verificationMethodHasBeenSet = true; m_verificationMethod = std::move(value); }
142
144
148 inline const Aws::String& GetIpamExternalResourceVerificationTokenId() const{ return m_ipamExternalResourceVerificationTokenId; }
149 inline bool IpamExternalResourceVerificationTokenIdHasBeenSet() const { return m_ipamExternalResourceVerificationTokenIdHasBeenSet; }
150 inline void SetIpamExternalResourceVerificationTokenId(const Aws::String& value) { m_ipamExternalResourceVerificationTokenIdHasBeenSet = true; m_ipamExternalResourceVerificationTokenId = value; }
151 inline void SetIpamExternalResourceVerificationTokenId(Aws::String&& value) { m_ipamExternalResourceVerificationTokenIdHasBeenSet = true; m_ipamExternalResourceVerificationTokenId = std::move(value); }
152 inline void SetIpamExternalResourceVerificationTokenId(const char* value) { m_ipamExternalResourceVerificationTokenIdHasBeenSet = true; m_ipamExternalResourceVerificationTokenId.assign(value); }
157 private:
158
159 bool m_dryRun;
160 bool m_dryRunHasBeenSet = false;
161
162 Aws::String m_ipamPoolId;
163 bool m_ipamPoolIdHasBeenSet = false;
164
165 Aws::String m_cidr;
166 bool m_cidrHasBeenSet = false;
167
168 IpamCidrAuthorizationContext m_cidrAuthorizationContext;
169 bool m_cidrAuthorizationContextHasBeenSet = false;
170
171 int m_netmaskLength;
172 bool m_netmaskLengthHasBeenSet = false;
173
174 Aws::String m_clientToken;
175 bool m_clientTokenHasBeenSet = false;
176
177 VerificationMethod m_verificationMethod;
178 bool m_verificationMethodHasBeenSet = false;
179
180 Aws::String m_ipamExternalResourceVerificationTokenId;
181 bool m_ipamExternalResourceVerificationTokenIdHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
ProvisionIpamPoolCidrRequest & WithIpamPoolId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetIpamExternalResourceVerificationTokenId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ProvisionIpamPoolCidrRequest & WithIpamExternalResourceVerificationTokenId(const char *value)
ProvisionIpamPoolCidrRequest & WithIpamExternalResourceVerificationTokenId(Aws::String &&value)
ProvisionIpamPoolCidrRequest & WithCidrAuthorizationContext(const IpamCidrAuthorizationContext &value)
ProvisionIpamPoolCidrRequest & WithNetmaskLength(int value)
ProvisionIpamPoolCidrRequest & WithDryRun(bool value)
ProvisionIpamPoolCidrRequest & WithClientToken(Aws::String &&value)
void SetVerificationMethod(const VerificationMethod &value)
ProvisionIpamPoolCidrRequest & WithIpamExternalResourceVerificationTokenId(const Aws::String &value)
ProvisionIpamPoolCidrRequest & WithVerificationMethod(const VerificationMethod &value)
void SetCidrAuthorizationContext(const IpamCidrAuthorizationContext &value)
ProvisionIpamPoolCidrRequest & WithCidr(const char *value)
ProvisionIpamPoolCidrRequest & WithIpamPoolId(const Aws::String &value)
void SetCidrAuthorizationContext(IpamCidrAuthorizationContext &&value)
ProvisionIpamPoolCidrRequest & WithClientToken(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
ProvisionIpamPoolCidrRequest & WithCidr(Aws::String &&value)
ProvisionIpamPoolCidrRequest & WithIpamPoolId(const char *value)
const IpamCidrAuthorizationContext & GetCidrAuthorizationContext() const
ProvisionIpamPoolCidrRequest & WithVerificationMethod(VerificationMethod &&value)
ProvisionIpamPoolCidrRequest & WithCidrAuthorizationContext(IpamCidrAuthorizationContext &&value)
ProvisionIpamPoolCidrRequest & WithClientToken(const Aws::String &value)
ProvisionIpamPoolCidrRequest & WithCidr(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String