AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AllocateIpamPoolCidrRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AllocateIpamPoolCidr"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const{ return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline AllocateIpamPoolCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
58 inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; }
59 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
60 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
61 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
62 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
63 inline AllocateIpamPoolCidrRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
64 inline AllocateIpamPoolCidrRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
65 inline AllocateIpamPoolCidrRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
67
69
78 inline const Aws::String& GetCidr() const{ return m_cidr; }
79 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
80 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
81 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
82 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
83 inline AllocateIpamPoolCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
84 inline AllocateIpamPoolCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
85 inline AllocateIpamPoolCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
87
89
99 inline int GetNetmaskLength() const{ return m_netmaskLength; }
100 inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; }
101 inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; }
102 inline AllocateIpamPoolCidrRequest& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;}
104
106
112 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
115 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
116 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
117 inline AllocateIpamPoolCidrRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
118 inline AllocateIpamPoolCidrRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
119 inline AllocateIpamPoolCidrRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
121
123
126 inline const Aws::String& GetDescription() const{ return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
130 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
131 inline AllocateIpamPoolCidrRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
132 inline AllocateIpamPoolCidrRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 inline AllocateIpamPoolCidrRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
135
137
140 inline bool GetPreviewNextCidr() const{ return m_previewNextCidr; }
141 inline bool PreviewNextCidrHasBeenSet() const { return m_previewNextCidrHasBeenSet; }
142 inline void SetPreviewNextCidr(bool value) { m_previewNextCidrHasBeenSet = true; m_previewNextCidr = value; }
143 inline AllocateIpamPoolCidrRequest& WithPreviewNextCidr(bool value) { SetPreviewNextCidr(value); return *this;}
145
147
151 inline const Aws::Vector<Aws::String>& GetAllowedCidrs() const{ return m_allowedCidrs; }
152 inline bool AllowedCidrsHasBeenSet() const { return m_allowedCidrsHasBeenSet; }
153 inline void SetAllowedCidrs(const Aws::Vector<Aws::String>& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs = value; }
154 inline void SetAllowedCidrs(Aws::Vector<Aws::String>&& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs = std::move(value); }
157 inline AllocateIpamPoolCidrRequest& AddAllowedCidrs(const Aws::String& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs.push_back(value); return *this; }
158 inline AllocateIpamPoolCidrRequest& AddAllowedCidrs(Aws::String&& value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs.push_back(std::move(value)); return *this; }
159 inline AllocateIpamPoolCidrRequest& AddAllowedCidrs(const char* value) { m_allowedCidrsHasBeenSet = true; m_allowedCidrs.push_back(value); return *this; }
161
163
167 inline const Aws::Vector<Aws::String>& GetDisallowedCidrs() const{ return m_disallowedCidrs; }
168 inline bool DisallowedCidrsHasBeenSet() const { return m_disallowedCidrsHasBeenSet; }
169 inline void SetDisallowedCidrs(const Aws::Vector<Aws::String>& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs = value; }
170 inline void SetDisallowedCidrs(Aws::Vector<Aws::String>&& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs = std::move(value); }
173 inline AllocateIpamPoolCidrRequest& AddDisallowedCidrs(const Aws::String& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs.push_back(value); return *this; }
174 inline AllocateIpamPoolCidrRequest& AddDisallowedCidrs(Aws::String&& value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs.push_back(std::move(value)); return *this; }
175 inline AllocateIpamPoolCidrRequest& AddDisallowedCidrs(const char* value) { m_disallowedCidrsHasBeenSet = true; m_disallowedCidrs.push_back(value); return *this; }
177 private:
178
179 bool m_dryRun;
180 bool m_dryRunHasBeenSet = false;
181
182 Aws::String m_ipamPoolId;
183 bool m_ipamPoolIdHasBeenSet = false;
184
185 Aws::String m_cidr;
186 bool m_cidrHasBeenSet = false;
187
188 int m_netmaskLength;
189 bool m_netmaskLengthHasBeenSet = false;
190
191 Aws::String m_clientToken;
192 bool m_clientTokenHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 bool m_previewNextCidr;
198 bool m_previewNextCidrHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_allowedCidrs;
201 bool m_allowedCidrsHasBeenSet = false;
202
203 Aws::Vector<Aws::String> m_disallowedCidrs;
204 bool m_disallowedCidrsHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EC2
209} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAllowedCidrs(Aws::Vector< Aws::String > &&value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(const Aws::String &value)
AllocateIpamPoolCidrRequest & WithDescription(const Aws::String &value)
AllocateIpamPoolCidrRequest & WithNetmaskLength(int value)
AllocateIpamPoolCidrRequest & AddAllowedCidrs(Aws::String &&value)
AllocateIpamPoolCidrRequest & WithClientToken(const Aws::String &value)
void SetAllowedCidrs(const Aws::Vector< Aws::String > &value)
AllocateIpamPoolCidrRequest & WithCidr(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AllocateIpamPoolCidrRequest & WithClientToken(const char *value)
AllocateIpamPoolCidrRequest & AddAllowedCidrs(const Aws::String &value)
AllocateIpamPoolCidrRequest & WithDisallowedCidrs(const Aws::Vector< Aws::String > &value)
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(Aws::String &&value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(Aws::String &&value)
AllocateIpamPoolCidrRequest & WithPreviewNextCidr(bool value)
AllocateIpamPoolCidrRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AllocateIpamPoolCidrRequest & AddAllowedCidrs(const char *value)
void SetDisallowedCidrs(const Aws::Vector< Aws::String > &value)
AllocateIpamPoolCidrRequest & WithCidr(const char *value)
const Aws::Vector< Aws::String > & GetDisallowedCidrs() const
void SetDisallowedCidrs(Aws::Vector< Aws::String > &&value)
AllocateIpamPoolCidrRequest & WithCidr(const Aws::String &value)
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(const char *value)
AllocateIpamPoolCidrRequest & WithDescription(const char *value)
AllocateIpamPoolCidrRequest & WithDisallowedCidrs(Aws::Vector< Aws::String > &&value)
AllocateIpamPoolCidrRequest & WithDescription(Aws::String &&value)
AllocateIpamPoolCidrRequest & AddDisallowedCidrs(const Aws::String &value)
AllocateIpamPoolCidrRequest & WithAllowedCidrs(Aws::Vector< Aws::String > &&value)
AllocateIpamPoolCidrRequest & WithAllowedCidrs(const Aws::Vector< Aws::String > &value)
AllocateIpamPoolCidrRequest & WithIpamPoolId(const char *value)
AllocateIpamPoolCidrRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllowedCidrs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector